mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
metrics: handle nil telemetry config (#601)
This commit is contained in:
parent
095ce5e1da
commit
3e7160997a
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ func updateMetricsFromConfig(path string) {
|
||||||
|
|
||||||
conf := &CliConfig{}
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue