mirror of
https://gitlab.com/yawning/obfs4.git
synced 2024-11-17 09:25:36 +00:00
Use delete to remove entries from the replay filter.
This commit is contained in:
parent
5abad1571c
commit
0fa8adc752
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user