From adfeb4c0cfc9db845a7dde2ce224116a92b4b595 Mon Sep 17 00:00:00 2001 From: Tnze Date: Tue, 6 Dec 2022 22:39:27 +0800 Subject: [PATCH] fix KeepAlive pushPlayer method receiver --- server/keepalive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/keepalive.go b/server/keepalive.go index 2837476..826f629 100644 --- a/server/keepalive.go +++ b/server/keepalive.go @@ -79,7 +79,7 @@ func (k *KeepAlive) Run(ctx context.Context) { } } -func (k KeepAlive) pushPlayer(c KeepAliveClient) { +func (k *KeepAlive) pushPlayer(c KeepAliveClient) { k.listIndex[c] = k.pingList.PushBack( keepAliveItem{player: c, t: time.Now()}, )