Skip to content

Commit

Permalink
fix refresh peer slot page
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Jan 11, 2024
1 parent 7cdfb86 commit ed5cf4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/app/peers/[peerName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const PeerData = async ({ params: { peerName } }: DataConfigProps) => {
const flowServiceAddr = GetFlowHttpAddressFromEnv();

const peerSlots: PeerSlotResponse = await fetch(
`${flowServiceAddr}/v1/peers/slots/${peerName}`
`${flowServiceAddr}/v1/peers/slots/${peerName}`,
{
cache: 'no-store',
}
).then((res) => res.json());

const slotArray = peerSlots.slotData;
Expand All @@ -42,7 +45,8 @@ const PeerData = async ({ params: { peerName } }: DataConfigProps) => {
const flowServiceAddr = GetFlowHttpAddressFromEnv();

const peerStats: PeerStatResponse = await fetch(
`${flowServiceAddr}/v1/peers/stats/${peerName}`
`${flowServiceAddr}/v1/peers/stats/${peerName}`,
{ cache: 'no-store' }
).then((res) => res.json());

return peerStats.statData;
Expand Down

0 comments on commit ed5cf4b

Please sign in to comment.