mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-02 03:00:05 +08:00
perf: reduce various timeout and retry intervals for improved responsiveness to fetch proxy infomation (#6072)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ const WORKER_CONFIG = {
|
||||
rawDataMinutes: 10,
|
||||
compressedDataMinutes: 60,
|
||||
compressionRatio: 5,
|
||||
snapshotIntervalMs: 250,
|
||||
snapshotIntervalMs: 100,
|
||||
defaultRangeMinutes: 10,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user