fix: resolve pending and jumping
This commit is contained in:
11
health.go
11
health.go
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user