浏览代码

wip:更新

wangshan 2 月之前
父节点
当前提交
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)