Skip to content

Commit

Permalink
Revert "scyllaclient: timeout, report timeout if ctx.Err() == context…
Browse files Browse the repository at this point in the history
….DeadlineExceeded"

This reverts commit 57186d5.

(cherry picked from commit 465f714)
  • Loading branch information
mmatczuk committed Feb 23, 2022
1 parent 082cd06 commit 6f9cc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scyllaclient/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func timeout(next http.RoundTripper, timeout time.Duration) http.RoundTripper {
}
}

if ctx.Err() == context.DeadlineExceeded { //nolint: errorlint
if errors.Is(err, context.DeadlineExceeded) && errors.Is(ctx.Err(), context.DeadlineExceeded) {
err = errors.Wrapf(ErrTimeout, "after %s", d)
}
}()
Expand Down

0 comments on commit 6f9cc49

Please sign in to comment.