wangshan 2 miesięcy temu
rodzic
commit
32e2e5617d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      util/sse.go

+ 1 - 1
util/sse.go

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