Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
修复服务端死循环错误
Browse files Browse the repository at this point in the history
  • Loading branch information
perrornet committed Mar 3, 2022
1 parent 333f5f4 commit cb7389e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func Try(f func() bool, maxTry int) error {
if f() {
return nil
}
n++
}
return errors.New("try run function error")
}
Expand Down

0 comments on commit cb7389e

Please sign in to comment.