mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
perf(retry): the error returned by the Retry function contains the last error (#315)
This commit is contained in:
3 files changed
+8
-5
No files matched your search
@@ -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