Skip to content

Commit 152a348

Browse files
committed
removed fetchWithRetry fn that isn't in use
1 parent 669c442 commit 152a348

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/libraries/laboratory/src/lib/request.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,3 @@ export function createRequestSignal(
1010

1111
return signal;
1212
}
13-
14-
export async function fetchWithRetry(
15-
input: RequestInfo | URL,
16-
init: RequestInit,
17-
retryCount = 0,
18-
): Promise<Response> {
19-
for (let attempt = 0; attempt <= retryCount; attempt++) {
20-
try {
21-
return await fetch(input, init);
22-
} catch (error) {
23-
if (attempt >= retryCount) {
24-
throw error;
25-
}
26-
}
27-
}
28-
29-
throw new Error('Unreachable');
30-
}

0 commit comments

Comments
 (0)