Skip to content

Commit

Permalink
[explorer] Add refetching to indexer metrics (MystenLabs#7779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Mysten authored Jan 27, 2023
1 parent 138293b commit a5d1607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/explorer/src/components/HomeMetrics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export function HomeMetrics() {
const { data: countsData } = useQuery(
['home', 'counts'],
() => request<CountsResponse>('counts', { network }),
{ enabled }
{ enabled, refetchInterval: 60 * 1000 }
);

const { data: tpsData } = useQuery(
['home', 'tps-checkpoints'],
() => request<TPSCheckpointResponse>('tps-checkpoints', { network }),
{ enabled }
{ enabled, refetchInterval: 10 * 1000 }
);

if (!enabled) return null;
Expand Down

0 comments on commit a5d1607

Please sign in to comment.