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 62bde6f commit a5bb8d9Copy full SHA for a5bb8d9
pkg/util/retryutil/retry_util.go
@@ -27,7 +27,7 @@ func (t *Ticker) Tick() { <-t.ticker.C }
27
func Retry(interval time.Duration, timeout time.Duration, f func() (bool, error)) error {
28
//TODO: make the retry exponential
29
if timeout < interval {
30
- return fmt.Errorf("timout(%s) should be greater than interval(%v)", timeout, interval)
+ return fmt.Errorf("timeout(%s) should be greater than interval(%v)", timeout, interval)
31
}
32
tick := &Ticker{time.NewTicker(interval)}
33
return RetryWorker(interval, timeout, tick, f)
0 commit comments