We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c31644 commit a37e57fCopy full SHA for a37e57f
lightning/src/util/test_utils.rs
@@ -915,7 +915,7 @@ impl TestStore {
915
let mut persisted_lock = self.persisted_bytes.lock().unwrap();
916
let mut writes_lock = self.pending_async_writes.lock().unwrap();
917
918
- let pending_writes = writes_lock.get_mut(&key).unwrap();
+ let pending_writes = writes_lock.get_mut(&key).expect("No pending writes for given key");
919
pending_writes.retain(|(id, res, data)| {
920
if *id <= write_id {
921
let namespace = persisted_lock.entry(prefix.clone()).or_insert(new_hash_map());
0 commit comments