fix(operator): 服务器停服或删除时丢掉内存里的 RCON 失败计数
This commit is contained in:
3 files changed
+73
-12
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package operator
|
||||
|
||||
// ProbeMissesTracked is how many servers the reconciler holds a probe-miss count
|
||||
// for, so the external tests can see a count go with its server.
|
||||
func (r *Reconciler) ProbeMissesTracked() int {
|
||||
r.probeMu.Lock()
|
||||
defer r.probeMu.Unlock()
|
||||
return len(r.probeFailures)
|
||||
}
|
||||
Reference in new issue
Block a user