From a921efe62d4d9ab06435d974a409259baefef416 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:12:28 +0800 Subject: [PATCH] refactor: kick online user and remove token change to call auth rpc. --- internal/msggateway/client.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/internal/msggateway/client.go b/internal/msggateway/client.go index 806b8cac2..e3254c915 100644 --- a/internal/msggateway/client.go +++ b/internal/msggateway/client.go @@ -74,18 +74,6 @@ type Client struct { token string } -// function not used -// func newClient(ctx *UserConnContext, conn LongConn, isCompress bool) *Client { -// return &Client{ -// w: new(sync.Mutex), -// conn: conn, -// PlatformID: utils.StringToInt(ctx.GetPlatformID()), -// IsCompress: isCompress, -// UserID: ctx.GetUserID(), -// ctx: ctx, -// } -// } - // ResetClient updates the client's state with new connection and context information. func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, longConnServer LongConnServer) { c.w = new(sync.Mutex)