wangshan 2 mesiacov pred
rodič
commit
7ef73bb50b
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      util/sse.go

+ 2 - 2
util/sse.go

@@ -44,7 +44,7 @@ var (
 
 // 向指定用户发送通知
 func SendNotification(userId string, msg model.SseMessage) {
-	logger.Info(userId, "----SendNotification-----SseClients:", SseClients)
+	//logger.Info(userId, "----SendNotification-----SseClients:", SseClients)
 	SseClientsMu.Lock()
 	defer SseClientsMu.Unlock()
 	msgData, _ := json.Marshal(msg)
@@ -55,7 +55,7 @@ func SendNotification(userId string, msg model.SseMessage) {
 
 // 向所有用户发送通知
 func SendNotificationToAll(msg model.SseMessage) {
-	logger.Info("SendNotificationToAll ----- SseClients:", SseClients)
+	//logger.Info("SendNotificationToAll ----- SseClients:", SseClients)
 	SseClientsMu.Lock()
 	defer SseClientsMu.Unlock()
 	msgData, _ := json.Marshal(msg)