Review the change in context
Read the diff and the surrounding behavior before deciding what to do.
export async function retry(request) {
await backoff(attempt);
return send(request);
}Requests share an idempotency key
across retries and network failures.

Duplicate payment on retry
When a request times out, a retry can charge the same customer twice. Use an idempotency key to make retries safe.