Use delete to remove entries from the replay filter.

This commit is contained in:
Yawning Angel 2014-06-20 08:42:36 +00:00
parent 5abad1571c
commit 0fa8adc752

View File

@ -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