lib/db: Correct function name in comments (#9520)

This commit is contained in:
luchenhan
2024-05-16 07:02:57 +00:00
committed by GitHub
parent f2d6722348
commit 57d399317e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func OpenLevelDBRO(location string) (Backend, error) {
return newLeveldbBackend(ldb, location), nil
}
// OpenMemory returns a new Backend referencing an in-memory database.
// OpenLevelDBMemory returns a new Backend referencing an in-memory database.
func OpenLevelDBMemory() Backend {
ldb, _ := leveldb.Open(storage.NewMemStorage(), nil)
return newLeveldbBackend(ldb, "")