mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-10 15:04:27 +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
|
return err
|
||||||
}
|
}
|
||||||
flags.CheckEnvVars(ctx, app.Flags, "XDC")
|
flags.CheckEnvVars(ctx, app.Flags, "XDC")
|
||||||
// Start system runtime metrics collection
|
|
||||||
go metrics.CollectProcessMetrics(3 * time.Second)
|
|
||||||
|
|
||||||
utils.SetupNetwork(ctx)
|
utils.SetupNetwork(ctx)
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -307,6 +305,7 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg XDCConfig) {
|
||||||
}
|
}
|
||||||
// Start metrics export if enabled
|
// Start metrics export if enabled
|
||||||
utils.SetupMetrics(ctx)
|
utils.SetupMetrics(ctx)
|
||||||
|
|
||||||
// Start system runtime metrics collection
|
// Start system runtime metrics collection
|
||||||
go metrics.CollectProcessMetrics(3 * time.Second)
|
go metrics.CollectProcessMetrics(3 * time.Second)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue