mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
minor
This commit is contained in:
parent
9667588af0
commit
2ae3f812f8
|
@ -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…
Reference in a new issue