mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
reset wait time
This commit is contained in:
parent
7f2a8246a9
commit
11a496404b
|
@ -37,6 +37,7 @@ func RetryForever(name string, job func() error, onErrFn func(err error) bool) {
|
|||
for {
|
||||
err := job()
|
||||
if err == nil {
|
||||
waitTime = time.Second
|
||||
break
|
||||
}
|
||||
if onErrFn(err) {
|
||||
|
|
Loading…
Reference in a new issue