From 7625892baa4e838887b39273e4ae6e97e3ceed25 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 2 Jun 2023 17:05:42 +0800 Subject: [PATCH] refactor: remove limit --- internal/msggateway/n_ws_server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/msggateway/n_ws_server.go b/internal/msggateway/n_ws_server.go index f11891d1e..237c89666 100644 --- a/internal/msggateway/n_ws_server.go +++ b/internal/msggateway/n_ws_server.go @@ -132,6 +132,8 @@ func (ws *WsServer) registerClient(client *Client) { if clientOK { //已经有同平台的连接存在 ws.clients.Set(client.userID, client) ws.multiTerminalLoginChecker(cli) + log.ZInfo(client.ctx, "repeat login", "userID", client.userID, "platformID", client.platformID) + atomic.AddInt64(&ws.onlineUserConnNum, 1) } else { ws.clients.Set(client.userID, client) atomic.AddInt64(&ws.onlineUserConnNum, 1)