diff --git a/retry.go b/retry.go index 1e2ccff..53bac9c 100644 --- a/retry.go +++ b/retry.go @@ -101,7 +101,7 @@ func Do(retryableFunc RetryableFunc, opts ...Option) error { config.onRetry(n, err) select { - case <-time.After(delay(config, n, err)): + case <-config.timer.After(delay(config, n, err)): case <-config.context.Done(): return nil }