fix: the health check for the proxy provider sometimes do not respond (#1255)

This commit is contained in:
Plutonium141 2024-12-21 09:14:02 +08:00 committed by GitHub
parent 5dd9889b0a
commit 96bc233f89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,7 +171,7 @@ export const proxyProviderHealthCheckAPI = (providerName: string) => {
return request return request
.get(`providers/proxies/${encodeURIComponent(providerName)}/healthcheck`, { .get(`providers/proxies/${encodeURIComponent(providerName)}/healthcheck`, {
timeout: 5 * 1000, timeout: 20 * 1000,
}) })
.json<Record<string, number>>() .json<Record<string, number>>()
} }