Skip to content

Commit

Permalink
fix: db_backend lookup in config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
holyxiaoxin authored and yan-soon committed Sep 19, 2023
1 parent 464313d commit ff36c94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ func WaitForQuitSignals() ErrorCode {
// GetAppDBBackend gets the backend type to use for the application DBs.
func GetAppDBBackend(opts types.AppOptions) dbm.BackendType {
rv := cast.ToString(opts.Get("app-db-backend"))
if len(rv) == 0 {
rv = sdk.DBBackend
}
if len(rv) == 0 {
rv = cast.ToString(opts.Get("db_backend"))
}
Expand Down

0 comments on commit ff36c94

Please sign in to comment.