Reducing polling interval (#6729)

5s is way too fast, let's try 60s.
This commit is contained in:
Adam Sunderland
2025-05-06 21:24:12 -04:00
committed by GitHub
parent 134ec63610
commit b0b1198d2e

View File

@ -18,11 +18,9 @@ function RootLayout() {
// Because credits can be spent outside the app, and they also take time to
// calculate, we have to poll to have an updated amount.
// 5s should be reasonable. 2s for round trip network time and 3s for general
// computation...
setInterval(() => {
billingActor.send({ type: BillingTransition.Update, apiToken })
}, 5000)
}, 60000)
return (
<OpenInDesktopAppHandler>