perf: reduce various timeout and retry intervals for improved responsiveness to fetch proxy infomation (#6072)

This commit is contained in:
Tunglies
2026-01-25 07:31:34 +00:00
committed by GitHub
parent 6ded9bdcde
commit 6477dd61c3
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { mutate, type MutatorCallback } from "swr";
import useSWRSubscription from "swr/subscription";
import { type Message, type MihomoWebSocket } from "tauri-plugin-mihomo-api";
export const RECONNECT_DELAY_MS = 500;
export const RECONNECT_DELAY_MS = 100;
type NextFn<T> = (error?: any, data?: T | MutatorCallback<T>) => void;
+1 -1
View File
@@ -48,7 +48,7 @@ const WORKER_CONFIG = {
rawDataMinutes: 10,
compressedDataMinutes: 60,
compressionRatio: 5,
snapshotIntervalMs: 250,
snapshotIntervalMs: 100,
defaultRangeMinutes: 10,
};