File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ import "time"
15
15
// BackOff is a backoff policy for retrying an operation.
16
16
type BackOff interface {
17
17
// NextBackOff returns the duration to wait before retrying the operation,
18
- // or backoff. Stop to indicate that no more retries should be made.
18
+ // backoff.Stop to indicate that no more retries should be made.
19
19
//
20
20
// Example usage:
21
21
//
22
- // duration := backoff.NextBackOff();
23
- // if ( duration == backoff.Stop) {
24
- // // Do not retry operation.
25
- // } else {
26
- // // Sleep for duration and retry operation.
27
- // }
22
+ // duration := backoff.NextBackOff()
23
+ // if duration == backoff.Stop {
24
+ // // Do not retry operation.
25
+ // } else {
26
+ // // Sleep for duration and retry operation.
27
+ // }
28
28
//
29
29
NextBackOff () time.Duration
30
30
You can’t perform that action at this time.
0 commit comments