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()}, )