Browse Source

minor

pull/3339/head
chrislu 2 years ago
parent
commit
2ae3f812f8
  1. 2
      weed/util/retry.go

2
weed/util/retry.go

@ -32,7 +32,7 @@ func Retry(name string, job func() error) (err error) {
return err
}
func RetryForever(name string, job func() error, onErrFn func(err error) bool) {
func RetryForever(name string, job func() error, onErrFn func(err error) (shouldContinue bool)) {
waitTime := time.Second
for {
err := job()

Loading…
Cancel
Save