Skip to content

Commit 9959a5b

Browse files
committed
fix: review fixes
1 parent 379b94f commit 9959a5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/QueryExecutionStatus/useElapsedDuration.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ export function useElapsedDuration({
3030

3131
const getJitteredFastDelay = React.useCallback(() => {
3232
const jitter = Math.floor((Math.random() * 2 - 1) * FAST_REFRESH_JITTER_MS);
33-
const delay = FAST_REFRESH_MS + jitter;
34-
const min = FAST_REFRESH_MS - FAST_REFRESH_JITTER_MS;
35-
const max = FAST_REFRESH_MS + FAST_REFRESH_JITTER_MS;
36-
return Math.max(min, Math.min(max, delay));
33+
return FAST_REFRESH_MS + jitter;
3734
}, []);
3835

3936
const timerRef = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);

0 commit comments

Comments
 (0)