memory: fix paren bug
This commit is contained in:
parent
2771faf9fe
commit
6327938545
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
delete(shard.peers, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue