wangshan 2 сар өмнө
parent
commit
32e2e5617d
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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)