fix KeepAlive pushPlayer method receiver

This commit is contained in:
Tnze
2022-12-06 22:39:27 +08:00
parent 018d8e543a
commit adfeb4c0cf

View File

@ -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( k.listIndex[c] = k.pingList.PushBack(
keepAliveItem{player: c, t: time.Now()}, keepAliveItem{player: c, t: time.Now()},
) )