Skip to content

Commit

Permalink
metrics: handle nil telemetry config (ethereum#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 authored Nov 25, 2022
1 parent 095ce5e commit 3e71609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func updateMetricsFromConfig(path string) {

conf := &CliConfig{}

if _, err := toml.Decode(tomlData, &conf); err != nil || conf == nil {
_, err = toml.Decode(tomlData, &conf)
if err != nil || conf == nil || conf.Telemetry == nil {
return
}

Expand Down

0 comments on commit 3e71609

Please sign in to comment.