mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-09 23:22:28 +08:00
perf(retry): the error returned by the Retry function contains the last error (#315)
This commit is contained in:
@@ -118,7 +118,7 @@ func ExampleRetryTimes() {
|
||||
}
|
||||
|
||||
// Output:
|
||||
// function retry.ExampleRetryTimes.func1 run failed after 2 times retry
|
||||
// function retry.ExampleRetryTimes.func1 run failed after 2 times retry, last error: error occurs
|
||||
}
|
||||
|
||||
func ExampleRetry() {
|
||||
|
||||
Reference in New Issue
Block a user