memory: fix paren bug

This commit is contained in:
Jimmy Zelinskie 2016-02-25 19:22:21 -05:00
parent 2771faf9fe
commit 6327938545

View file

@ -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)
}