Skip to content

Commit 9b38e2e

Browse files
committed
make use of retry library multi error
1 parent e31035e commit 9b38e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func Do(retryableFunc RetryableFunc, opts ...Option) error {
114114
case <-config.timer.After(delay(config, n, err)):
115115
case <-config.context.Done():
116116
if config.wrapContextErrorWithLastError {
117-
return fmt.Errorf("%w: %w", config.context.Err(), lastErr)
117+
return Error{config.context.Err(), lastErr}
118118
}
119119
return config.context.Err()
120120
}

0 commit comments

Comments
 (0)