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

This commit is contained in:
UUBulb authored and GitHub committed 2024-07-17 10:06:23 +08:00
1 parent 02e87d9b4d
commit eed522f30e
2 files changed
+7 -1

No files matched your search

+1 -1
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 {