From f65e35dc731f3bb23783b603daddef4f268a50fa Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 18 Aug 2023 13:05:39 +0800 Subject: [PATCH] =?UTF-8?q?Route=20to=20user=E6=89=93=E7=82=B9=E6=98=AF?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=84=8F=E4=B9=89=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f91e382..8322a61 100644 --- a/main.go +++ b/main.go @@ -561,8 +561,8 @@ func (s *server) Route(ctx context.Context, in *userCenter.RouteMessage) (*userC var status uint32 = common.ROUTE_SUCCESS m := getChans(in.GetUid()) if len(m) > 0 { - for i, c := range m { - mylogrus.MyLog.Infof("Route to user %d, addr %s, channel %v", in.Uid, i, c) + for _, c := range m { + //mylogrus.MyLog.Infof("Route to user %d, addr %s, channel %v", in.Uid, i, c) c <- ProtoData{ MsgType: in.GetMsgType(), Data: in.GetPayLoad(), -- 2.22.0