mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/utils: unindent
This commit is contained in:
parent
83b532c4da
commit
f6971a729c
1 changed files with 44 additions and 43 deletions
|
|
@ -1970,7 +1970,9 @@ func RegisterFullSyncTester(stack *node.Node, eth *eth.Ethereum, target common.H
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetupMetrics(cfg *metrics.Config) {
|
func SetupMetrics(cfg *metrics.Config) {
|
||||||
if cfg.Enabled {
|
if !cfg.Enabled {
|
||||||
|
return
|
||||||
|
}
|
||||||
log.Info("Enabling metrics collection")
|
log.Info("Enabling metrics collection")
|
||||||
var (
|
var (
|
||||||
enableExport = cfg.EnableInfluxDB
|
enableExport = cfg.EnableInfluxDB
|
||||||
|
|
@ -2022,7 +2024,6 @@ func SetupMetrics(cfg *metrics.Config) {
|
||||||
} else if cfg.HTTP == "" && cfg.Port != 0 {
|
} else if cfg.HTTP == "" && cfg.Port != 0 {
|
||||||
log.Warn(fmt.Sprintf("--%s specified without --%s, metrics server will not start.", MetricsPortFlag.Name, MetricsHTTPFlag.Name))
|
log.Warn(fmt.Sprintf("--%s specified without --%s, metrics server will not start.", MetricsPortFlag.Name, MetricsHTTPFlag.Name))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SplitTagsFlag(tagsFlag string) map[string]string {
|
func SplitTagsFlag(tagsFlag string) map[string]string {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue