diff --git a/pkg/util.go b/pkg/util.go index 338937b..1c03495 100644 --- a/pkg/util.go +++ b/pkg/util.go @@ -17,6 +17,7 @@ func Try(f func() bool, maxTry int) error { if f() { return nil } + n++ } return errors.New("try run function error") }