()
| 58 | } |
| 59 | |
| 60 | func (p *DefaultClientRetryPolicy) timeNowUTC() time.Time { |
| 61 | if p.timeNowFunc != nil { |
| 62 | return p.timeNowFunc() |
| 63 | } |
| 64 | |
| 65 | return time.Now().UTC() |
| 66 | } |
| 67 | |
| 68 | // The maximum value of a duration before it overflows. About 292 years. |
| 69 | const maxDuration time.Duration = 1<<63 - 1 |