()
| 639 | } |
| 640 | |
| 641 | func newRelayRetryState() *relayRetryState { |
| 642 | return &relayRetryState{ |
| 643 | retrier: retry.New(relayRetryFloor, relayRetryCeil), |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | // next returns the delay before the next dial and sets giveUp once |
| 648 | // attempts exceed relayMaxRetries. Adapts the math from |
no test coverage detected