fix: resolve pending and jumping

This commit is contained in:
2026-08-03 13:31:45 +02:00
parent 4fcc479779
commit 6f963c7660
9 changed files with 330 additions and 60 deletions

View File

@@ -36,6 +36,17 @@ func (r *requestCoordinator) current(id uint64) bool {
return r.id == id
}
func (r *requestCoordinator) supersede() uint64 {
r.mu.Lock()
defer r.mu.Unlock()
if r.cancel != nil {
r.cancel()
r.cancel = nil
}
r.id++
return r.id
}
type HealthLevel string
const (