Fix Slasher Backup DB panic on call. (#8099)

This commit is contained in:
Cipio
2020-12-14 15:39:26 -06:00
committed by GitHub
parent 3e9d721280
commit 630d57377a

View File

@@ -89,16 +89,16 @@ func NewSlasherNode(cliCtx *cli.Context) (*SlasherNode, error) {
stop: make(chan struct{}),
}
if err := slasher.startDB(); err != nil {
return nil, err
}
if !cliCtx.Bool(cmd.DisableMonitoringFlag.Name) {
if err := slasher.registerPrometheusService(cliCtx); err != nil {
return nil, err
}
}
if err := slasher.startDB(); err != nil {
return nil, err
}
if err := slasher.registerBeaconClientService(); err != nil {
return nil, err
}