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 56f98e9 commit af7c10fCopy full SHA for af7c10f
retry.go
@@ -112,8 +112,7 @@ func (t *timerImpl) After(d time.Duration) <-chan time.Time {
112
113
func Do(retryableFunc RetryableFunc, opts ...Option) error {
114
retryableFuncWithData := func() (any, error) {
115
- err := retryableFunc()
116
- return nil, err
+ return nil, retryableFunc()
117
}
118
119
_, err := DoWithData(retryableFuncWithData, opts...)
0 commit comments