From 963304f6613c269dbd7b4628d3999e757ea8121a Mon Sep 17 00:00:00 2001 From: Redm4x <2829180+Redm4x@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:39:31 -0500 Subject: [PATCH] Enable grpc --- indexer/src/providers/providerStatusProvider.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indexer/src/providers/providerStatusProvider.ts b/indexer/src/providers/providerStatusProvider.ts index 7e48152a7..8bfa25416 100644 --- a/indexer/src/providers/providerStatusProvider.ts +++ b/indexer/src/providers/providerStatusProvider.ts @@ -7,7 +7,6 @@ import { ProviderSnapshot } from "@src/../../shared/dbSchemas/akash/providerSnap import { fetchAndSaveProviderStats as grpcFetchAndSaveProviderStats } from "./statusEndpointHandlers/grpc"; import { fetchAndSaveProviderStats as restFetchAndSaveProviderStats } from "./statusEndpointHandlers/rest"; -const IsGrpcEnpointEnabled = false; const ConcurrentStatusCall = 10; const StatusCallTimeout = 10_000; // 10 seconds @@ -36,7 +35,7 @@ export async function syncProvidersInfo() { }); const versionStr = versionResponse.data.akash.version; - if (IsGrpcEnpointEnabled && versionStr && semver.gte(versionStr, "0.5.0")) { + if (versionStr && semver.gte(versionStr, "0.5.0")) { await grpcFetchAndSaveProviderStats(provider, versionResponse.data.akash.cosmosSdkVersion, versionResponse.data.akash.version, StatusCallTimeout); } else { await restFetchAndSaveProviderStats(provider, versionResponse.data.akash.cosmosSdkVersion, versionResponse.data.akash.version, StatusCallTimeout);