mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Merge pull request #759 from gzliudan/fix_double_metrics
cmd/XDC: fix double metrics collect process issue
This commit is contained in:
commit
66da805ccd
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