We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f18555a commit 4dc8f76Copy full SHA for 4dc8f76
satellite/metainfo/bloomrate/bloom.go
@@ -48,7 +48,7 @@ func (br *BloomRate) Allow(now time.Time, key []byte) bool {
48
allowed := false
49
for _, seed := range br.hashes {
50
mh.SetSeed(seed)
51
- mh.Write(key)
+ _, _ = mh.Write(key)
52
if br.rates[int(mh.Sum64()&uint64(len(br.rates)-1))].Allow(now, br.limit, br.burst) {
53
allowed = true
54
// we can't break out of the for loop here. we need to make sure all
0 commit comments