fix: fix ExampleContext failed

This commit is contained in:
dudaodong committed 2023-03-01 11:45:02 +08:00
1 parent 71aa91a58d
commit 3857b342f6
1 file changed
+1 -5
+1 -5
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: