free up drec.peers when we're done with it

This commit is contained in:
Yusef Napora 2020-05-11 13:36:35 -04:00 committed by vyzo
parent 9c730661bc
commit cc0ba20627
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ func (t *tagTracer) nearFirstPeers(msg *Message) []peer.ID {
nearFirstPeers = append(nearFirstPeers, p)
}
}
// we're done with the peers map and can reclaim the memory
drec.peers = nil
return nearFirstPeers
}