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);