chore fixed (#897)

* chore fixed
This commit is contained in:
Machtergreifung 2022-01-13 10:51:47 +08:00 committed by GitHub
parent 800b3bd3fe
commit 9ad26fa049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 14 deletions

View file

@ -9,7 +9,7 @@ import (
const replayFilterCapacity = 100000
// ReplayFilter check for replay attacks.
// ReplayFilter checks for replay attacks.
type ReplayFilter struct {
lock sync.Mutex
poolA *cuckoo.Filter
@ -31,7 +31,7 @@ func (filter *ReplayFilter) Interval() int64 {
return filter.interval
}
// Check determine if there are duplicate records.
// Check determines if there are duplicate records.
func (filter *ReplayFilter) Check(sum []byte) bool {
filter.lock.Lock()
defer filter.lock.Unlock()