From 6327938545765190f52d67de8f2aa306f980572d Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 25 Feb 2016 19:22:21 -0500 Subject: [PATCH] memory: fix paren bug --- server/store/memory/peer_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }