mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
fix(proxy): updateAllProvider, some of the proxy provider update may throw
This commit is contained in:
parent
b9184d2670
commit
e09aac2f4b
@ -109,10 +109,10 @@ export const useProxies = () => {
|
||||
}
|
||||
|
||||
const updateAllProvider = async () => {
|
||||
await Promise.all(
|
||||
proxyProviders().map((provider) => {
|
||||
return request.put(`providers/proxies/${provider.name}`)
|
||||
}),
|
||||
await Promise.allSettled(
|
||||
proxyProviders().map((provider) =>
|
||||
request.put(`providers/proxies/${provider.name}`),
|
||||
),
|
||||
)
|
||||
await updateProxies()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user