mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
swarm/network: always init kad metrics containers
This commit is contained in:
parent
5af18e3e6b
commit
661eeb74eb
1 changed files with 1 additions and 4 deletions
|
|
@ -105,10 +105,7 @@ func New(addr Address, params *KadParams) *Kademlia {
|
|||
buckets: buckets,
|
||||
db: newKadDb(addr, params),
|
||||
}
|
||||
//if metrics are enabled, initialise the array of counters
|
||||
if metrics.Enabled {
|
||||
kad.initMetricsVariables()
|
||||
}
|
||||
kad.initMetricsVariables()
|
||||
return kad
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue