feat: optimize delay checker concurrency strategy

This commit is contained in:
GyDi
2022-04-10 02:58:48 +08:00
parent 68ad5e2320
commit 3001c780bd
4 changed files with 34 additions and 38 deletions

View File

@@ -92,12 +92,11 @@ const ProxyGroup = ({ group }: Props) => {
const names = sortedProxies.map((p) => p.name);
const groupName = group.name;
await delayManager.checkListDelay(
{ names, groupName, skipNum: 8, maxTimeout: 600 },
() => mutate("getProxies")
await delayManager.checkListDelay({ names, groupName, skipNum: 8 }, () =>
mutate("getProxies")
);
mutate("getProxies");
console.log("finish");
});
// auto scroll to current index