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