fix: lock heartbeat every 10s, timeout after 30s (was 2min/5min)
This commit is contained in:
@@ -267,7 +267,7 @@ export default function OfferDetail() {
|
||||
|
||||
heartbeatRef.current = setInterval(() => {
|
||||
apiFetch(`${API_BASE}/offers/${id}/heartbeat`, { method: 'POST' }).catch(() => {})
|
||||
}, 2 * 60 * 1000) // every 2 minutes
|
||||
}, 10 * 1000) // every 10 seconds
|
||||
|
||||
return () => {
|
||||
if (heartbeatRef.current) clearInterval(heartbeatRef.current)
|
||||
|
||||
Reference in New Issue
Block a user