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
1e203f35f7
commit
99138e15c0
11 changed files with 12 additions and 12 deletions
|
@ -58,7 +58,7 @@ func (pc *pipeCopy) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pc *pipeCopy) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pc *pipeCopy) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pc, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ func (pd *pipeDelete) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pd *pipeDelete) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pd *pipeDelete) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pd, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ func (pf *pipeFieldNames) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pf *pipeFieldNames) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pf *pipeFieldNames) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pf, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ func (pf *pipeFields) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pf *pipeFields) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pf *pipeFields) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pf, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ func (pl *pipeLimit) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pl *pipeLimit) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pl *pipeLimit) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pl, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ func (po *pipeOffset) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (po *pipeOffset) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (po *pipeOffset) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return po, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ func (pp *pipePackJSON) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pp *pipePackJSON) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pp *pipePackJSON) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pp, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ func (pr *pipeRename) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pr *pipeRename) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pr *pipeRename) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pr, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ func (ps *pipeSort) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (ps *pipeSort) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (ps *pipeSort) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return ps, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ func (pu *pipeUniq) hasFilterInWithQuery() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (pu *pipeUniq) initFilterInValues(cache map[string][]string, getFieldValuesFunc getFieldValuesFunc) (pipe, error) {
|
||||
func (pu *pipeUniq) initFilterInValues(_ map[string][]string, _ getFieldValuesFunc) (pipe, error) {
|
||||
return pu, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ func (pup *pipeUnrollProcessor) writeBlock(workerID uint, br *blockResult) {
|
|||
if needStop(pup.stopCh) {
|
||||
return
|
||||
}
|
||||
shard.writeUnrolledFields(br, pu.fields, columnValues, rowIdx)
|
||||
shard.writeUnrolledFields(pu.fields, columnValues, rowIdx)
|
||||
} else {
|
||||
fields = fields[:0]
|
||||
for i, f := range pu.fields {
|
||||
|
@ -163,7 +163,7 @@ func (pup *pipeUnrollProcessor) writeBlock(workerID uint, br *blockResult) {
|
|||
shard.a.reset()
|
||||
}
|
||||
|
||||
func (shard *pipeUnrollProcessorShard) writeUnrolledFields(br *blockResult, fieldNames []string, columnValues [][]string, rowIdx int) {
|
||||
func (shard *pipeUnrollProcessorShard) writeUnrolledFields(fieldNames []string, columnValues [][]string, rowIdx int) {
|
||||
// unroll values at rowIdx row
|
||||
|
||||
shard.unrolledValues = slicesutil.SetLength(shard.unrolledValues, len(columnValues))
|
||||
|
|
Loading…
Reference in a new issue