From e663e85ef9e2c225588e264d811b246709e4e926 Mon Sep 17 00:00:00 2001 From: unihon Date: Tue, 23 Dec 2025 18:21:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(usage):=20=E4=BF=AE=E5=A4=8Dprovider=5Fheal?= =?UTF-8?q?th=E6=8E=A5=E5=8F=A3=E8=BF=87=E6=BB=A4=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request-handler.js b/src/request-handler.js index 477143a..81defc7 100644 --- a/src/request-handler.js +++ b/src/request-handler.js @@ -72,7 +72,7 @@ export function createRequestHandler(config, providerPoolManager) { const customName = requestUrl.searchParams.get('customName'); let unhealthRatioThreshold = requestUrl.searchParams.get('unhealthRatioThreshold'); unhealthRatioThreshold = unhealthRatioThreshold === null ? 0.0001 : parseFloat(unhealthRatioThreshold); - let provideStatus = await getProviderStatus(currentConfig, null, { provider, customName }); + let provideStatus = await getProviderStatus(currentConfig, { provider, customName }); let summaryHealth = true; if (!isNaN(unhealthRatioThreshold)) { summaryHealth = provideStatus.unhealthyRatio <= unhealthRatioThreshold;