fix(explorer): rollback ping until api is more stable (#23419)
This commit is contained in:
parent
7943e8a1c3
commit
d0ba914d2b
|
@ -18,7 +18,6 @@ import { useVoteAccounts } from "providers/accounts/vote-accounts";
|
||||||
import { CoingeckoStatus, useCoinGecko } from "utils/coingecko";
|
import { CoingeckoStatus, useCoinGecko } from "utils/coingecko";
|
||||||
import { Epoch } from "components/common/Epoch";
|
import { Epoch } from "components/common/Epoch";
|
||||||
import { TimestampToggle } from "components/common/TimestampToggle";
|
import { TimestampToggle } from "components/common/TimestampToggle";
|
||||||
import { SolanaPingCard } from "components/SolanaPingCard";
|
|
||||||
|
|
||||||
const CLUSTER_STATS_TIMEOUT = 5000;
|
const CLUSTER_STATS_TIMEOUT = 5000;
|
||||||
|
|
||||||
|
@ -37,7 +36,7 @@ export function ClusterStatsPage() {
|
||||||
<StatsCardBody />
|
<StatsCardBody />
|
||||||
</div>
|
</div>
|
||||||
<TpsCard />
|
<TpsCard />
|
||||||
<SolanaPingCard />
|
{/* <SolanaPingCard /> */}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
import { SolanaPingProvider } from "providers/stats/SolanaPingProvider";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { SolanaClusterStatsProvider } from "./solanaClusterStats";
|
import { SolanaClusterStatsProvider } from "./solanaClusterStats";
|
||||||
|
|
||||||
type Props = { children: React.ReactNode };
|
type Props = { children: React.ReactNode };
|
||||||
export function StatsProvider({ children }: Props) {
|
export function StatsProvider({ children }: Props) {
|
||||||
return (
|
return <SolanaClusterStatsProvider>{children}</SolanaClusterStatsProvider>;
|
||||||
<SolanaClusterStatsProvider>
|
|
||||||
<SolanaPingProvider>{children}</SolanaPingProvider>
|
|
||||||
</SolanaClusterStatsProvider>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue