(d, minD, maxD time.Duration)
| 2646 | } |
| 2647 | |
| 2648 | func exponential(d, minD, maxD time.Duration) time.Duration { |
| 2649 | d *= 2 |
| 2650 | if d < minD { |
| 2651 | d = minD |
| 2652 | } |
| 2653 | if d > maxD { |
| 2654 | d = maxD |
| 2655 | } |
| 2656 | return d |
| 2657 | } |
| 2658 | |
| 2659 | // closeAll closes all given closers while recording all errors. |
| 2660 | func closeAll(cs []io.Closer) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…