Skip to content

Commit e79177d

Browse files
authored
cmd/utils: remove duplicate code for influxDB tags (#31854)
remove duplicate code Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
1 parent 0867c24 commit e79177d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmd/utils/flags.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,6 @@ func SetupMetrics(cfg *metrics.Config) {
20202020
log.Info("Enabling metrics export to InfluxDB")
20212021
go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 10*time.Second, endpoint, database, username, password, "geth.", tagsMap)
20222022
} else if enableExportV2 {
2023-
tagsMap := SplitTagsFlag(cfg.InfluxDBTags)
20242023
log.Info("Enabling metrics export to InfluxDB (v2)")
20252024
go influxdb.InfluxDBV2WithTags(metrics.DefaultRegistry, 10*time.Second, endpoint, token, bucket, organization, "geth.", tagsMap)
20262025
}

0 commit comments

Comments
 (0)