Skip to content

Commit

Permalink
fix: bsdb init allow error
Browse files Browse the repository at this point in the history
  • Loading branch information
annielz committed May 25, 2023
1 parent a7078f2 commit f1afdfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/gfspapp/app_options.go
Original file line number Diff line number Diff line change
@@ -255,12 +255,14 @@ func DefaultGfBsDBOption(app *GfSpBaseApp, cfg *gfspconfig.GfSpConfig) error {

bsDBBlockSyncerMaster, err := bsdb.NewBsDB(cfg, false)
if err != nil {
return err
log.Warnw("if not use bsdb, please ignore: failed to new bsdb", "error", err)
return nil
}

bsDBBlockSyncerBackUp, err := bsdb.NewBsDB(cfg, true)
if err != nil {
return err
log.Warnw("if not use bsdb, please ignore: failed to new bsdb", "error", err)
return nil
}

app.gfBsDBMaster = bsDBBlockSyncerMaster

0 comments on commit f1afdfb

Please sign in to comment.