Skip to content

Commit

Permalink
fix(proxy): updateAllProvider, some of the proxy provider update may …
Browse files Browse the repository at this point in the history
…throw
  • Loading branch information
kunish committed Sep 5, 2023
1 parent b9184d2 commit e09aac2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/signals/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e09aac2

Please sign in to comment.