swarm/storage: improve instrumentation
swarm/storage/localstore: fix broken metric (#1373) p2p/protocols: count different messages (#1374) cmd/swarm: disable snapshot create test due to constant flakes (#1376) swarm/network: remove redundant goroutine (#1377)
This commit is contained in:
@@ -47,7 +47,7 @@ func (db *DB) Get(ctx context.Context, mode chunk.ModeGet, addr chunk.Address) (
|
||||
|
||||
defer func() {
|
||||
if err != nil {
|
||||
metrics.GetOrRegisterCounter(fmt.Sprintf(metricName+".error", mode), nil).Inc(1)
|
||||
metrics.GetOrRegisterCounter(metricName+".error", nil).Inc(1)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user