mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-12 15:53:32 -07:00
memory: fix paren bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user