mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
lib/storage: go fmt
This commit is contained in:
parent
c76a904bb0
commit
c4a0bd5eac
@ -2484,7 +2484,7 @@ func (is *indexSearch) getMetricIDsForTagFilterSlow(tf *tagFilter, filter *uint6
|
|||||||
// Slow path: need tf.matchSuffix call.
|
// Slow path: need tf.matchSuffix call.
|
||||||
ok, err := tf.matchSuffix(suffix)
|
ok, err := tf.matchSuffix(suffix)
|
||||||
// Assume that tf.matchSuffix call needs 10x more time than a single metric scan iteration.
|
// Assume that tf.matchSuffix call needs 10x more time than a single metric scan iteration.
|
||||||
loopsCount += 10*tf.matchCost
|
loopsCount += 10 * tf.matchCost
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return loopsCount, fmt.Errorf("error when matching %s against suffix %q: %w", tf, suffix, err)
|
return loopsCount, fmt.Errorf("error when matching %s against suffix %q: %w", tf, suffix, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user