Skip to content

Commit 1dac7ef

Browse files
committed
Fix comment
1 parent b83128b commit 1dac7ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/contexts/useProxyLatency.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export const useProxyLatency = (
9393
return acc
9494
}
9595

96-
// Do not run latency checks more than once per <interval> seconds.
96+
// Do not run latency checks if a cached check exists below the latestFetchRequest Date.
97+
// This prevents fetching latencies too often.
9798
// 1. Fetch the latest stored latency for the given proxy.
9899
// 2. If the latest latency is after the latestFetchRequest, then skip the latency check.
99100
if (storedLatencies && storedLatencies[proxy.id]) {

0 commit comments

Comments
 (0)