From cc0ba2062703ffe325b7e3666884aae028819086 Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Mon, 11 May 2020 13:36:35 -0400 Subject: [PATCH] free up drec.peers when we're done with it --- tag_tracer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tag_tracer.go b/tag_tracer.go index 2f4804e..d063b87 100644 --- a/tag_tracer.go +++ b/tag_tracer.go @@ -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 }