Add back interval

This commit is contained in:
Eric Bailey
2026-01-24 13:25:28 -06:00
parent 13c14f9bb0
commit f2ad943dee
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export class MetricsClient<M extends Record<string, any>> {
}
this.queue.push(e)
logger.info(`event: ${e.event as string}`, e)
logger.debug(`event: ${e.event as string}`, e)
if (this.queue.length > this.maxBatchSize) {
this.flush()
+1
View File
@@ -41,6 +41,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
// keep this, prefectching handles initial load
staleTime: 1000 * 15,
queryKey: liveEventsQueryKey,
refetchInterval: 1000 * 60 * 5, // refetch every 5 minutes
async queryFn() {
return fetchLiveEvents()
},