We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31035e commit 9b38e2eCopy full SHA for 9b38e2e
retry.go
@@ -114,7 +114,7 @@ func Do(retryableFunc RetryableFunc, opts ...Option) error {
114
case <-config.timer.After(delay(config, n, err)):
115
case <-config.context.Done():
116
if config.wrapContextErrorWithLastError {
117
- return fmt.Errorf("%w: %w", config.context.Err(), lastErr)
+ return Error{config.context.Err(), lastErr}
118
}
119
return config.context.Err()
120
0 commit comments