mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/logstorage: fix golangci-lint warnings
This commit is contained in:
parent
7a6783e3df
commit
bc4a0b8f37
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue