We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b83128b commit 1dac7efCopy full SHA for 1dac7ef
site/src/contexts/useProxyLatency.ts
@@ -93,7 +93,8 @@ export const useProxyLatency = (
93
return acc
94
}
95
96
- // Do not run latency checks more than once per <interval> seconds.
+ // Do not run latency checks if a cached check exists below the latestFetchRequest Date.
97
+ // This prevents fetching latencies too often.
98
// 1. Fetch the latest stored latency for the given proxy.
99
// 2. If the latest latency is after the latestFetchRequest, then skip the latency check.
100
if (storedLatencies && storedLatencies[proxy.id]) {
0 commit comments