mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +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…
x
Reference in New Issue
Block a user