mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 12:53:09 +00:00
free up drec.peers when we're done with it
This commit is contained in:
parent
9c730661bc
commit
cc0ba20627
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user