diff --git a/server/store/memory/peer_store.go b/server/store/memory/peer_store.go index 28e8f26..1c4ab69 100644 --- a/server/store/memory/peer_store.go +++ b/server/store/memory/peer_store.go @@ -207,7 +207,7 @@ func (s *peerStore) CollectGarbage(cutoff time.Time) error { } } - if len(shard.peers[key] == 0) { + if len(shard.peers[key]) == 0 { delete(shard.peers, key) }