feat: optimize delay checker concurrency strategy

This commit is contained in:
GyDi
2022-04-10 02:58:48 +08:00
parent 6cfbde43ab
commit e7804d39b3
4 changed files with 34 additions and 38 deletions

View File

@@ -70,12 +70,9 @@ const ProxyGlobal = (props: Props) => {
const onCheckAll = useLockFn(async () => {
const names = sortedProxies.map((p) => p.name);
await delayManager.checkListDelay(
{ names, groupName, skipNum: 8, maxTimeout: 600 },
() => mutate("getProxies")
await delayManager.checkListDelay({ names, groupName, skipNum: 8 }, () =>
mutate("getProxies")
);
mutate("getProxies");
});
useEffect(() => onLocation(false), [groupName]);