mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
metrics: reduce allocations for metrics
This commit is contained in:
parent
67d337eef4
commit
9cc073af72
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ func TestPrefixedChildRegistryGet(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestChildPrefixedRegistryRegister(t *testing.T) {
|
||||
r := NewPrefixedChildRegistry(DefaultRegistry, "prefix.")
|
||||
r := NewPrefixedChildRegistry(NewRegistry(), "prefix.")
|
||||
err := r.Register("foo", NewCounter())
|
||||
c := NewCounter()
|
||||
Register("bar", c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue