Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix new piece store and spdb #460

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions base/gfspapp/app_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ func DefaultGfSpDBOption(app *GfSpBaseApp, cfg *gfspconfig.GfSpConfig) error {
dbCfg := &cfg.SpDB
db, err := sqldb.NewSpDB(dbCfg)
if err != nil {
return err
log.Warnw("if not use spdb, please ignore: failed to new spdb", "error", err)
return nil
}
app.gfSpDB = db
return nil
Expand Down Expand Up @@ -225,7 +226,8 @@ func DefaultGfSpPieceStoreOption(app *GfSpBaseApp, cfg *gfspconfig.GfSpConfig) e
}
pieceStore, err := piecestoreclient.NewStoreClient(&cfg.PieceStore)
if err != nil {
return err
log.Warnw("if not use piece store, please ignore: failed to new piece store", "error", err)
return nil
}
app.pieceStore = pieceStore
return nil
Expand Down