Using withNoBackoff as the backoff function sends retries as quickly as possible, with no backoff of any kind.
()
| 92 | // Using withNoBackoff as the backoff function sends retries as quickly as |
| 93 | // possible, with no backoff of any kind. |
| 94 | func withNoBackoff() string { |
| 95 | res, err := sendRequest() |
| 96 | for err != nil { |
| 97 | res, err = sendRequest() |
| 98 | } |
| 99 | |
| 100 | return res |
| 101 | } |
| 102 | |
| 103 | // Using withDelayedBackoff as the backoff function sends retries after a |
| 104 | // two-second delay. |
nothing calls this directly
no test coverage detected