From eaed8932040bde088ccf107a2b188f4735608b40 Mon Sep 17 00:00:00 2001 From: Rinse Date: Fri, 1 Nov 2024 14:06:30 +0000 Subject: [PATCH] use ipfs | ipns for types in stats --- src/clients/base-client-manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clients/base-client-manager.ts b/src/clients/base-client-manager.ts index 42d08694..816afd72 100644 --- a/src/clients/base-client-manager.ts +++ b/src/clients/base-client-manager.ts @@ -374,7 +374,6 @@ export class BaseClientsManager { valiateGatewayResponse: (resObj: { resText: string; res: Response }) => Promise ): Promise<{ resText: string; res: Response }> { const timeoutMs = this._plebbit._clientsManager.getGatewayTimeoutMs(loadOpts.recordPlebbitType); - const type = loadOpts.recordIpfsType === "ipfs" ? "cid" : "ipns"; const concurrencyLimit = 3; const queueLimit = pLimit(concurrencyLimit); @@ -383,7 +382,7 @@ export class BaseClientsManager { const gatewaysSorted = remeda.keys.strict(this._plebbit.clients.ipfsGateways).length <= concurrencyLimit ? remeda.keys.strict(this._plebbit.clients.ipfsGateways) - : await this._plebbit._stats.sortGatewaysAccordingToScore(type); + : await this._plebbit._stats.sortGatewaysAccordingToScore(loadOpts.recordIpfsType); const gatewayFetches: GenericGatewayFetch = {};