[Pkg-privacy-commits] [obfs4proxy] 81/151: Use delete to remove entries from the replay filter.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:59:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository obfs4proxy.
commit 0fa8adc7526e8f91593baa27af2d827fd9b5bcc1
Author: Yawning Angel <yawning at schwanenlied.me>
Date: Fri Jun 20 08:42:36 2014 +0000
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfs4proxy.git
More information about the Pkg-privacy-commits
mailing list