MCPcopy Create free account
hub / github.com/akash-network/node / GetAppDBBackend

Function GetAppDBBackend

util/server/server.go:221–231  ·  view source on GitHub ↗

GetAppDBBackend gets the backend type to use for the application DBs.

(opts servertypes.AppOptions)

Source from the content-addressed store, hash-verified

219
220// GetAppDBBackend gets the backend type to use for the application DBs.
221func GetAppDBBackend(opts servertypes.AppOptions) dbm.BackendType {
222 rv := cast.ToString(opts.Get("app-db-backend"))
223 if len(rv) == 0 {
224 rv = cast.ToString(opts.Get("db_backend"))
225 }
226 if len(rv) != 0 {
227 return dbm.BackendType(rv)
228 }
229
230 return dbm.GoLevelDBBackend
231}

Callers 1

GetCmdFunction · 0.92

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected