Skip to content

Commit

Permalink
fix according to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
helinwang committed Aug 23, 2017
1 parent da7a1f2 commit 5270585
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/master/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func retry(f func() error, dur time.Duration, count int) error {
err := f()
if err != nil {
if count > 0 {
time.Sleep(dur)
return retry(f, dur, count-1)
}
return err
Expand Down

0 comments on commit 5270585

Please sign in to comment.