fix(operator): 服务器停服或删除时丢掉内存里的 RCON 失败计数

This commit is contained in:
Lemon-miaow committed 2026-09-27 13:34:42 +08:00
1 parent c272e2ea24
commit 0d485992c6
3 files changed
+73 -12

No files matched your search

+9
View File
@@ -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)
}