From c1bc5089b9c98fe5e8fc5818ec973b20e7668e63 Mon Sep 17 00:00:00 2001 From: lwch Date: Mon, 24 Jan 2022 10:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/server/handler/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/server/handler/handler.go b/code/server/handler/handler.go index ed25ed6..e0e5719 100644 --- a/code/server/handler/handler.go +++ b/code/server/handler/handler.go @@ -50,7 +50,6 @@ func New(cfg *global.Configure) *Handler { func (h *Handler) Handle(conn net.Conn) { c := network.NewConn(conn) var id string - var idx uint32 defer func() { if len(id) > 0 { logging.Info("%s disconnected", id) @@ -73,7 +72,7 @@ func (h *Handler) Handle(conn net.Conn) { if err != nil { return } - logging.Info("%s-%d connected", id, idx) + logging.Info("%s connected", id) cli := h.clis.new(id, c)