feat: increase timeouts for delays 2s->5s & 5s -> 10s

This commit is contained in:
divocat
2025-10-27 14:56:10 +02:00
parent 8a3b41ec9c
commit 835cd85970
2 changed files with 4 additions and 4 deletions

View File

@@ -31,12 +31,12 @@ export const PodkopShellMethods = {
getClashApiProxyLatency: async (tag: string) => getClashApiProxyLatency: async (tag: string) =>
callBaseMethod<Podkop.GetClashApiProxyLatency>( callBaseMethod<Podkop.GetClashApiProxyLatency>(
Podkop.AvailableMethods.CLASH_API, Podkop.AvailableMethods.CLASH_API,
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag], [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, '5000'],
), ),
getClashApiGroupLatency: async (tag: string) => getClashApiGroupLatency: async (tag: string) =>
callBaseMethod<Podkop.GetClashApiGroupLatency>( callBaseMethod<Podkop.GetClashApiGroupLatency>(
Podkop.AvailableMethods.CLASH_API, Podkop.AvailableMethods.CLASH_API,
[Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag], [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag, '10000'],
), ),
setClashApiGroupProxy: async (group: string, proxy: string) => setClashApiGroupProxy: async (group: string, proxy: string) =>
callBaseMethod<unknown>(Podkop.AvailableMethods.CLASH_API, [ callBaseMethod<unknown>(Podkop.AvailableMethods.CLASH_API, [

View File

@@ -561,11 +561,11 @@ var PodkopShellMethods = {
]), ]),
getClashApiProxyLatency: async (tag) => callBaseMethod( getClashApiProxyLatency: async (tag) => callBaseMethod(
Podkop.AvailableMethods.CLASH_API, Podkop.AvailableMethods.CLASH_API,
[Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag] [Podkop.AvailableClashAPIMethods.GET_PROXY_LATENCY, tag, "5000"]
), ),
getClashApiGroupLatency: async (tag) => callBaseMethod( getClashApiGroupLatency: async (tag) => callBaseMethod(
Podkop.AvailableMethods.CLASH_API, Podkop.AvailableMethods.CLASH_API,
[Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag] [Podkop.AvailableClashAPIMethods.GET_GROUP_LATENCY, tag, "10000"]
), ),
setClashApiGroupProxy: async (group, proxy) => callBaseMethod(Podkop.AvailableMethods.CLASH_API, [ setClashApiGroupProxy: async (group, proxy) => callBaseMethod(Podkop.AvailableMethods.CLASH_API, [
Podkop.AvailableClashAPIMethods.SET_GROUP_PROXY, Podkop.AvailableClashAPIMethods.SET_GROUP_PROXY,