|
@@ -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)
|