()
| 120 | } |
| 121 | |
| 122 | function flushWithBackOff(): void { |
| 123 | if (flushTimer) { |
| 124 | return; |
| 125 | } |
| 126 | |
| 127 | flushIn(retryDelay); |
| 128 | |
| 129 | retryDelay = Math.min(retryDelay * 2, MAX_DELAY); |
| 130 | } |
| 131 | |
| 132 | async function send(envelope: Envelope, isRetry: boolean = false): Promise<TransportMakeRequestResponse> { |
| 133 | // We queue all replay envelopes to avoid multiple replay envelopes being sent at the same time. If one fails, we |
no test coverage detected