mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 01:06:07 +02:00
Fix typo (#965)
This commit is contained in:
@@ -27,7 +27,7 @@ func (t *Ticker) Tick() { <-t.ticker.C }
|
|||||||
func Retry(interval time.Duration, timeout time.Duration, f func() (bool, error)) error {
|
func Retry(interval time.Duration, timeout time.Duration, f func() (bool, error)) error {
|
||||||
//TODO: make the retry exponential
|
//TODO: make the retry exponential
|
||||||
if timeout < interval {
|
if timeout < interval {
|
||||||
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)
|
||||||
}
|
}
|
||||||
tick := &Ticker{time.NewTicker(interval)}
|
tick := &Ticker{time.NewTicker(interval)}
|
||||||
return RetryWorker(interval, timeout, tick, f)
|
return RetryWorker(interval, timeout, tick, f)
|
||||||
|
|||||||
Reference in New Issue
Block a user