File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ func Start(cfg *config.Config) error {
6666 go func () {
6767 // TODO: return error if we cannot initialize metrics
6868 _ = metricsRouter .Run (fmt .Sprintf ("%s:%d" ,
69- cfg .Metrics .MetricsAddress ,
70- cfg .Metrics .MetricsPort ))
69+ cfg .Metrics .ListenAddress ,
70+ cfg .Metrics .ListenPort ))
7171 }()
7272
7373 // Configure API routes
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ type DebugConfig struct {
3636}
3737
3838type MetricsConfig struct {
39- MetricsAddress string `yaml:"metricsAddress " envconfig:"METRICS_LISTEN_ADDRESS"`
40- MetricsPort uint `yaml:"metricsPort " envconfig:"METRICS_LISTEN_PORT"`
39+ ListenAddress string `yaml:"address " envconfig:"METRICS_LISTEN_ADDRESS"`
40+ ListenPort uint `yaml:"port " envconfig:"METRICS_LISTEN_PORT"`
4141}
4242
4343type NodeConfig struct {
@@ -62,8 +62,8 @@ var globalConfig = &Config{
6262 ListenPort : 0 ,
6363 },
6464 Metrics : MetricsConfig {
65- MetricsAddress : "" ,
66- MetricsPort : 8081 ,
65+ ListenAddress : "" ,
66+ ListenPort : 8081 ,
6767 },
6868 Node : NodeConfig {
6969 Network : "mainnet" ,
You can’t perform that action at this time.
0 commit comments