diff --git a/CHANGELOG.md b/CHANGELOG.md index 14b3cf1e1..bd4977292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,8 @@ ### Fixed +* lmdb: add missing commit method call in `Store::delete` ([Yuki Kishimoto]) + ### Removed * Remove deprecated ([Yuki Kishimoto]) diff --git a/crates/nostr-lmdb/src/store/mod.rs b/crates/nostr-lmdb/src/store/mod.rs index aa73c9bf1..f9d58a1a0 100644 --- a/crates/nostr-lmdb/src/store/mod.rs +++ b/crates/nostr-lmdb/src/store/mod.rs @@ -322,6 +322,7 @@ impl Store { for event in events.into_iter() { db.remove(&mut txn, &event)?; } + txn.commit()?; Ok(()) })