[client] Drain buffered tick when coalesce window expires

This commit is contained in:
Zoltán Papp
2026-07-28 16:30:15 +02:00
parent e1d82fc326
commit 4c95b20251

View File

@@ -73,6 +73,14 @@ func collectStatusBurst(ctx context.Context, ch <-chan struct{}) (pending, open
}
pending = true
case <-timer.C:
select {
case _, ok := <-ch:
if !ok {
return pending, false
}
pending = true
default:
}
return pending, true
case <-ctx.Done():
return false, false