From 6d339295be8f71b63708ba319078e5bda8cf05d0 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 15 May 2021 15:24:30 +0500 Subject: [PATCH] fix doc --- util/retry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/retry.go b/util/retry.go index b04854b245c..3bffcf288d8 100644 --- a/util/retry.go +++ b/util/retry.go @@ -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 {