fix(explorer): rollback ping until api is more stable (#23419)

This commit is contained in:
Josh 2022-03-01 11:57:23 -08:00 committed by GitHub
parent 7943e8a1c3
commit d0ba914d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -18,7 +18,6 @@ import { useVoteAccounts } from "providers/accounts/vote-accounts";
import { CoingeckoStatus, useCoinGecko } from "utils/coingecko";
import { Epoch } from "components/common/Epoch";
import { TimestampToggle } from "components/common/TimestampToggle";
import { SolanaPingCard } from "components/SolanaPingCard";
const CLUSTER_STATS_TIMEOUT = 5000;
@ -37,7 +36,7 @@ export function ClusterStatsPage() {
<StatsCardBody />
</div>
<TpsCard />
<SolanaPingCard />
{/* <SolanaPingCard /> */}
</div>
);
}

View File

@ -1,12 +1,7 @@
import { SolanaPingProvider } from "providers/stats/SolanaPingProvider";
import React from "react";
import { SolanaClusterStatsProvider } from "./solanaClusterStats";
type Props = { children: React.ReactNode };
export function StatsProvider({ children }: Props) {
return (
<SolanaClusterStatsProvider>
<SolanaPingProvider>{children}</SolanaPingProvider>
</SolanaClusterStatsProvider>
);
return <SolanaClusterStatsProvider>{children}</SolanaClusterStatsProvider>;
}