mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 06:04:33 +00:00
cmd/XDC: fix double metrics collect process issue
This commit is contained in:
parent
b794f6a849
commit
11b74151bd
1 changed files with 1 additions and 2 deletions
|
|
@ -203,8 +203,6 @@ func init() {
|
|||
return err
|
||||
}
|
||||
flags.CheckEnvVars(ctx, app.Flags, "XDC")
|
||||
// Start system runtime metrics collection
|
||||
go metrics.CollectProcessMetrics(3 * time.Second)
|
||||
|
||||
utils.SetupNetwork(ctx)
|
||||
return nil
|
||||
|
|
@ -307,6 +305,7 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg XDCConfig) {
|
|||
}
|
||||
// Start metrics export if enabled
|
||||
utils.SetupMetrics(ctx)
|
||||
|
||||
// Start system runtime metrics collection
|
||||
go metrics.CollectProcessMetrics(3 * time.Second)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue