Skip to content

Commit

Permalink
lmdb: add missing commit method call in Store::delete
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Sep 27, 2024
1 parent 0202a87 commit 9632df6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@

### Fixed

* lmdb: add missing commit method call in `Store::delete` ([Yuki Kishimoto])

### Removed

* Remove deprecated ([Yuki Kishimoto])
Expand Down
1 change: 1 addition & 0 deletions crates/nostr-lmdb/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ impl Store {
for event in events.into_iter() {
db.remove(&mut txn, &event)?;
}
txn.commit()?;

Ok(())
})
Expand Down

0 comments on commit 9632df6

Please sign in to comment.