fix: fetching telemetry URL when DB is nil
This commit is contained in:
parent
665bc8452c
commit
002cb10847
|
@ -107,9 +107,12 @@ func (b *StatusNode) initServices(config *params.NodeConfig, mediaServer *server
|
|||
}
|
||||
|
||||
if config.WakuV2Config.Enabled {
|
||||
telemetryServerURL, err := accDB.GetTelemetryServerURL()
|
||||
if err != nil {
|
||||
return err
|
||||
telemetryServerURL := ""
|
||||
if accDB.DB() != nil {
|
||||
telemetryServerURL, err = accDB.GetTelemetryServerURL()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
waku2Service, err := b.wakuV2Service(config, telemetryServerURL)
|
||||
|
|
Loading…
Reference in New Issue