Skip to content

Commit

Permalink
use ipfs | ipns for types in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinse12 committed Nov 1, 2024
1 parent 8e7e831 commit eaed893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/clients/base-client-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ export class BaseClientsManager {
valiateGatewayResponse: (resObj: { resText: string; res: Response }) => Promise<void>
): 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);
Expand All @@ -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 = {};

Expand Down

0 comments on commit eaed893

Please sign in to comment.