Max returns the maximum of the two given numbers.
(a, b uint64)
| 618 | |
| 619 | // Max returns the maximum of the two given numbers. |
| 620 | func Max(a, b uint64) uint64 { |
| 621 | if a > b { |
| 622 | return a |
| 623 | } |
| 624 | return b |
| 625 | } |
| 626 | |
| 627 | // ExponentialRetry runs the given function until it succeeds or can no longer be retried. |
| 628 | func ExponentialRetry(maxRetries int, waitAfterFailure time.Duration, |
no outgoing calls
no test coverage detected