Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed May 15, 2021
1 parent f1cff0e commit 6d33929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
)

// Retries a given toExec function calling onError on failed attempts
// Retry retries a given toExec function calling onError on failed attempts
// onError shouldn be a lightweight function and shouldn't be blocking
func Retry(attempts int, sleep time.Duration, toExec func() error, onError func(e error)) error {
if err := toExec(); err != nil {
Expand Down

0 comments on commit 6d33929

Please sign in to comment.