[#857] golangci: Add perfsprint linter

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-12-11 13:06:03 +03:00
parent d2746a7d67
commit 5d7833c89b
2 changed files with 3 additions and 2 deletions

View file

@ -79,5 +79,6 @@ linters:
- contextcheck
- importas
- truecloudlab-linters
- perfsprint
disable-all: true
fast: false

View file

@ -1,7 +1,7 @@
package metrics
import (
"fmt"
"strconv"
"time"
"git.frostfs.info/TrueCloudLab/frostfs-observability/metrics"
@ -52,7 +52,7 @@ func (m *writeCacheMetrics) AddMethodDuration(shardID string, method string, suc
m.methodDuration.With(
prometheus.Labels{
shardIDLabel: shardID,
successLabel: fmt.Sprintf("%v", success),
successLabel: strconv.FormatBool(success),
storageLabel: storageType,
methodLabel: method,
},