From 283c59f29418f2e294b3caca0886226f77ba9c21 Mon Sep 17 00:00:00 2001 From: John Adler Date: Tue, 25 Jan 2022 19:33:26 -0500 Subject: [PATCH] Use enum instead of strings. --- node/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/node.go b/node/node.go index 58aa145ec50..d8b0d7af064 100644 --- a/node/node.go +++ b/node/node.go @@ -313,9 +313,9 @@ func createAndStartIndexerService( func DefaultDBProvider(ctx *DBContext) (dbm.DB, error) { if ctx.Config.RootDir == "" && ctx.Config.DBPath == "" { // this is used for testing - dbType := dbm.BackendType("memdb") + dbType := dbm.MemDBBackend return dbm.NewDB(ctx.ID, dbType, "memdb") } - dbType := dbm.BackendType("badgerdb") + dbType := dbm.BadgerDBBackend return dbm.NewDB(ctx.ID, dbType, ctx.Config.RootDir+ctx.Config.DBPath+"index") }