Skip to content

Commit 4b2a41a

Browse files
committed
remove unused backoff function
1 parent 15d1806 commit 4b2a41a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

apps/coordinator/src/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,6 @@ async function getParsedFileSize(filePath: string) {
113113
};
114114
}
115115

116-
// At 10 retries, the minimum total elapsed time is 5h22m, and the maximum is double that
117-
function exponentialBackoffMs(retryCount: number) {
118-
const MS_MULTIPLIER = 1000;
119-
const MAX = 2 * 60 * 60 * 1000;
120-
121-
const rawDelay = 3 ** retryCount * MS_MULTIPLIER;
122-
123-
// Equal jitter is less performant, but more predictable than other strategies
124-
const boundedWithJitter = Math.min((rawDelay / 2) * (1 + Math.random()), MAX);
125-
126-
return boundedWithJitter;
127-
}
128-
129116
class Checkpointer {
130117
#initialized = false;
131118
#canCheckpoint = false;

0 commit comments

Comments
 (0)