Skip to content

Commit

Permalink
Allow unlocking while closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed May 22, 2024
1 parent 3052aa9 commit 93821c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.13.1

- Allow unlocking the database while closing it.

## 0.13.0

- Only throw in `.sync()` on closed database if the force parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cross/kv",
"version": "0.13.0",
"version": "0.13.1",
"exports": {
".": "./mod.ts"
},
Expand Down
1 change: 0 additions & 1 deletion src/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ export class KVLedger {
}

public async unlock(): Promise<void> {
await this.ensureOpen();
let fd;
try {
fd = await rawOpen(this.dataPath, true);
Expand Down

0 comments on commit 93821c5

Please sign in to comment.