diff --git a/src/apis/index.ts b/src/apis/index.ts index 34cf7d1..5961dc9 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -128,7 +128,7 @@ export const updateProxyProviderAPI = (providerName: string) => { return request.put(`providers/proxies/${providerName}`) } -export const proxyProviderHealthCheck = (providerName: string) => { +export const proxyProviderHealthCheckAPI = (providerName: string) => { const request = useRequest() return request.get(`providers/proxies/${providerName}/healthcheck`, { diff --git a/src/signals/proxies.ts b/src/signals/proxies.ts index edfcc14..4584a40 100644 --- a/src/signals/proxies.ts +++ b/src/signals/proxies.ts @@ -5,6 +5,7 @@ import { fetchProxyProvidersAPI, proxyGroupLatencyTestAPI, proxyLatencyTestAPI, + proxyProviderHealthCheckAPI, selectProxyInGroupAPI, updateProxyProviderAPI, } from '~/apis' @@ -185,7 +186,7 @@ export const useProxies = () => { const proxyProviderLatencyTest = (providerName: string) => setProxyProviderLatencyTestingMap(providerName, async () => { - await proxyProviderLatencyTest(providerName) + await proxyProviderHealthCheckAPI(providerName) await fetchProxies() })