From 71bff7720c781c61e03bfbc6c2a8a35e9f5de16c Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 26 Dec 2023 10:29:21 +0800 Subject: [PATCH] Update main.go --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 13df886..88a4dd1 100644 --- a/main.go +++ b/main.go @@ -190,9 +190,9 @@ func (s *server) Multicast(ctx context.Context, in *userCenter.MulticastMessage) failed = append(failed, uid) } } - if len(failed) > 0 { - mylogrus.MyLog.Infof("Multicast failed for %v\n", failed) - } + //if len(failed) > 0 { + //mylogrus.MyLog.Infof("Multicast failed for %v\n", failed) + //} return &userCenter.MulticastMessageRsp{FailedUids: failed}, nil } @@ -496,7 +496,7 @@ func transmitMessage(c biz.TransmitterClient, msgType uint32, data string) (uint } func sendKickMessage(c userCenter.RouterClient, msg *userCenter.KickMessage) error { - mylogrus.MyLog.Infof("sendKickMessage %s", msg.String()) + //mylogrus.MyLog.Infof("sendKickMessage %s", msg.String()) ctx, cancel := context.WithTimeout(context.Background(), time.Second*3) defer cancel() r, err := c.KickUser(ctx, msg) @@ -637,8 +637,8 @@ func main() { for { select { - case a := <-ticker.C: - mylogrus.MyLog.Infof("Tick at %s", a.String()) + case <-ticker.C: + //mylogrus.MyLog.Infof("Tick at %s", a.String()) terminals := termManager.GetAll() if terminals != nil { if len(*terminals) <= 100 { -- 2.22.0