good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit b3905fb6 authored by Andrew Ashikhmin's avatar Andrew Ashikhmin Committed by GitHub
Browse files

Fix rpcdaemon: borDb may be nil (#3512)

parent 83c99d66
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment