fix: concurrent write to single WebSocket connection (#392)

This commit is contained in:
UUBulb
2024-07-17 10:06:23 +08:00
committed by GitHub
parent 34fedd91d2
commit f95191c8af
2 changed files with 7 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ func (m *Monitor) AfterFind(tx *gorm.DB) error {
// IsServiceSentinelNeeded 判断该任务类型是否需要进行服务监控 需要则返回true
func IsServiceSentinelNeeded(t uint64) bool {
return t != TaskTypeCommand && t != TaskTypeTerminal && t != TaskTypeUpgrade
return t != TaskTypeCommand && t != TaskTypeTerminalGRPC && t != TaskTypeUpgrade
}
func (m *Monitor) InitSkipServers() error {