Increase SSE activity debounce to 500ms
Reduce per-route SSE activity event frequency by doubling the server-side debounce window from 250ms to 500ms. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -283,7 +283,7 @@ func (s *LocalServer) markRouteActivity(routeKey string) {
|
|||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
s.routeLastActivity[routeKey] = now
|
s.routeLastActivity[routeKey] = now
|
||||||
last := s.routeLastSSE[routeKey]
|
last := s.routeLastSSE[routeKey]
|
||||||
if now.Sub(last) < 250*time.Millisecond {
|
if now.Sub(last) < 500*time.Millisecond {
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user