From 0fa8adc7526e8f91593baa27af2d827fd9b5bcc1 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Fri, 20 Jun 2014 08:42:36 +0000 Subject: [PATCH] Use delete to remove entries from the replay filter. --- replay_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replay_filter.go b/replay_filter.go index 9556ef4..cdcd728 100644 --- a/replay_filter.go +++ b/replay_filter.go @@ -129,7 +129,7 @@ func (f *replayFilter) compactFilter(now int64) { } } eNext := e.Next() - f.filter[entry.hash] = nil + delete(f.filter, entry.hash) f.fifo.Remove(entry.element) entry.element = nil e = eNext