提交 5270585e 编写于 作者: H Helin Wang

fix according to comment

上级 da7a1f2f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册