Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
retry
: Explicitly check context for error
The retryable function may exit prematurely due to context errors that shouldn't be retried. Before, we checked the returned error for context errors, i.e. used `errors.Is()` to compare it to `Canceled` and `DeadlineExceeded` which also yields `true` for errors that implement `Is()` accordingly. For example, this applies to some non-exported Go `net` errors. Now we explicitly check the context error instead.
- Loading branch information