[#424] metrics: Drop unused arg
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
fb8fee0c8e
commit
71bbeddb64
2 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"time"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-observability/metrics"
|
||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
|
@ -20,7 +19,7 @@ type MorphCacheMetrics interface {
|
|||
|
||||
AddGroupKeyDuration(success bool, d time.Duration)
|
||||
|
||||
AddTxHeightDuration(hash util.Uint256, success bool, d time.Duration)
|
||||
AddTxHeightDuration(success bool, d time.Duration)
|
||||
}
|
||||
|
||||
type morphCacheMetrics struct {
|
||||
|
@ -60,7 +59,7 @@ func (m *morphCacheMetrics) AddGroupKeyDuration(success bool, d time.Duration) {
|
|||
).Observe(float64(d))
|
||||
}
|
||||
|
||||
func (m *morphCacheMetrics) AddTxHeightDuration(hash util.Uint256, success bool, d time.Duration) {
|
||||
func (m *morphCacheMetrics) AddTxHeightDuration(success bool, d time.Duration) {
|
||||
m.txHeightDuration.With(
|
||||
prometheus.Labels{
|
||||
mcSuccess: strconv.FormatBool(success),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue