fix(processor): recovery process can be ended in time when the watchdog received stop command.

This commit is contained in:
NanamiAdmin committed 2026-05-08 17:09:04 +08:00
1 parent 3ce076b8dc
commit 65f31f28f6
3 files changed
+61 -44

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package global
import (
"sync"
)
type ServiceMonitor struct {
ServiceName string
StopChan chan struct{}
Running bool
Recovery bool
}
var (
Monitors = make(map[string]*ServiceMonitor)
MonitorsMutex sync.RWMutex
)