1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00

fix: fix ExampleContext failed

This commit is contained in:
dudaodong
2023-03-01 11:45:02 +08:00
parent 71aa91a58d
commit 3857b342f6

View File

@@ -19,15 +19,11 @@ func ExampleContext() {
return errors.New("error occurs") return errors.New("error occurs")
} }
err := Retry(increaseNumber, Retry(increaseNumber,
RetryDuration(time.Microsecond*50), RetryDuration(time.Microsecond*50),
Context(ctx), Context(ctx),
) )
if err != nil {
return
}
fmt.Println(number) fmt.Println(number)
// Output: // Output: