소스 검색

wip:更新

wangshan 3 달 전
부모
커밋
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)