mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
Fix rpcdaemon: borDb may be nil (#3512)
This commit is contained in:
parent
83c99d66da
commit
b3905fb659
@ -22,7 +22,9 @@ func main() {
|
||||
return nil
|
||||
}
|
||||
defer db.Close()
|
||||
defer borDb.Close()
|
||||
if borDb != nil {
|
||||
defer borDb.Close()
|
||||
}
|
||||
|
||||
apiList := commands.APIList(db, borDb, backend, txPool, mining, starknet, ff, stateCache, blockReader, *cfg, nil)
|
||||
if err := cli.StartRpcServer(ctx, *cfg, apiList); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user