[#1658] node: Read metrics from meta on startup
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
745f72fff0
commit
9c7b3ce799
5 changed files with 28 additions and 0 deletions
|
@ -22,6 +22,10 @@ type metricsWithID struct {
|
|||
mw MetricRegister
|
||||
}
|
||||
|
||||
func (m metricsWithID) SetObjectCounter(v uint64) {
|
||||
m.mw.SetObjectCounter(m.id, v)
|
||||
}
|
||||
|
||||
func (m metricsWithID) AddToObjectCounter(delta int) {
|
||||
m.mw.AddToObjectCounter(m.id, delta)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue