Skip to content

Commit 4dc8f76

Browse files
committed
satellite/bloomrate: explicitly ignore errors
Change-Id: I9ae3cca2c7de7bb91deaf38dc53abc312867caff
1 parent f18555a commit 4dc8f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

satellite/metainfo/bloomrate/bloom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (br *BloomRate) Allow(now time.Time, key []byte) bool {
4848
allowed := false
4949
for _, seed := range br.hashes {
5050
mh.SetSeed(seed)
51-
mh.Write(key)
51+
_, _ = mh.Write(key)
5252
if br.rates[int(mh.Sum64()&uint64(len(br.rates)-1))].Allow(now, br.limit, br.burst) {
5353
allowed = true
5454
// we can't break out of the for loop here. we need to make sure all

0 commit comments

Comments
 (0)