Remove name specification for instance (#347)

* Remove name specification for instance

* Close environment as well
This commit is contained in:
Jaco Greeff
2019-03-04 15:39:21 +01:00
committed by GitHub
parent 42a99673a9
commit 962e18ccc0
+1 -1
View File
@@ -33,12 +33,12 @@ export default class LmDb implements BaseDb {
close (): void {
this._dbi.close();
this._dbi = null;
this._env.close();
}
open (): void {
this._dbi = this._env.openDbi({
create: true,
name: 'lmdb',
keyIsBuffer: true
});
}