Skip to content
Snippets Groups Projects
Commit 0fa8adc7 authored by Yawning Angel's avatar Yawning Angel
Browse files

Use delete to remove entries from the replay filter.

parent 5abad157
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment