lib/logstorage: fix golangci-lint warnings

This commit is contained in:
Aliaksandr Valialkin 2024-05-20 11:04:01 +02:00
parent 7a6783e3df
commit bc4a0b8f37
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ func benchmarkBitmapForEachSetBitReadonly(b *testing.B, bm *bitmap) {
n := 0
for pb.Next() {
bmLocal.copyFrom(bm)
bmLocal.forEachSetBitReadonly(func(idx int) {
bmLocal.forEachSetBitReadonly(func(_ int) {
n++
})
}
@ -111,7 +111,7 @@ func benchmarkBitmapForEachSetBit(b *testing.B, bm *bitmap, isClearBits bool) {
n := 0
for pb.Next() {
bmLocal.copyFrom(bm)
bmLocal.forEachSetBit(func(idx int) bool {
bmLocal.forEachSetBit(func(_ int) bool {
n++
return !isClearBits
})

View file

@ -206,7 +206,7 @@ func endsWithPipeUniqSingleField(pipes []pipe, fieldName string) bool {
func (s *Storage) runSingleColumnQuery(ctx context.Context, tenantIDs []TenantID, q *Query) ([]string, error) {
var values []string
var valuesLock sync.Mutex
writeBlockResult := func(workerID uint, br *blockResult) {
writeBlockResult := func(_ uint, br *blockResult) {
if len(br.timestamps) == 0 {
return
}