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) {
|
||||
if cfg.Enabled {
|
||||
if !cfg.Enabled {
|
||||
return
|
||||
}
|
||||
log.Info("Enabling metrics collection")
|
||||
var (
|
||||
enableExport = cfg.EnableInfluxDB
|
||||
|
|
@ -2023,7 +2025,6 @@ func SetupMetrics(cfg *metrics.Config) {
|
|||
log.Warn(fmt.Sprintf("--%s specified without --%s, metrics server will not start.", MetricsPortFlag.Name, MetricsHTTPFlag.Name))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func SplitTagsFlag(tagsFlag string) map[string]string {
|
||||
tags := strings.Split(tagsFlag, ",")
|
||||
|
|
|
|||
Loading…
Reference in a new issue