Skip to content

Commit 76c5c13

Browse files
committed
f Account for lazy flag in KVStore::remove
1 parent 1f8d1a0 commit 76c5c13

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lightning-background-processor/src

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ use core::task;
508508
/// # impl lightning::util::persist::KVStore for MyStore {
509509
/// # fn read(&self, namespace: &str, sub_namespace: &str, key: &str) -> io::Result<Vec<u8>> { Ok(Vec::new()) }
510510
/// # fn write(&self, namespace: &str, sub_namespace: &str, key: &str, buf: &[u8]) -> io::Result<()> { Ok(()) }
511-
/// # fn remove(&self, namespace: &str, sub_namespace: &str, key: &str) -> io::Result<()> { Ok(()) }
511+
/// # fn remove(&self, namespace: &str, sub_namespace: &str, key: &str, lazy: bool) -> io::Result<()> { Ok(()) }
512512
/// # fn list(&self, namespace: &str, sub_namespace: &str) -> io::Result<Vec<String>> { Ok(Vec::new()) }
513513
/// # }
514514
/// # struct MyEventHandler {}
@@ -1027,8 +1027,8 @@ mod tests {
10271027
self.kv_store.write(namespace, sub_namespace, key, buf)
10281028
}
10291029

1030-
fn remove(&self, namespace: &str, sub_namespace: &str, key: &str) -> lightning::io::Result<()> {
1031-
self.kv_store.remove(namespace, sub_namespace, key)
1030+
fn remove(&self, namespace: &str, sub_namespace: &str, key: &str, lazy: bool) -> lightning::io::Result<()> {
1031+
self.kv_store.remove(namespace, sub_namespace, key, lazy)
10321032
}
10331033

10341034
fn list(&self, namespace: &str, sub_namespace: &str) -> lightning::io::Result<Vec<String>> {

0 commit comments

Comments
 (0)