@@ -748,14 +748,14 @@ use futures_util::{dummy_waker, Joiner, OptionalSelector, Selector, SelectorOutp
748748/// # impl lightning::util::persist::KVStoreSync for StoreSync {
749749/// # fn read(&self, primary_namespace: &str, secondary_namespace: &str, key: &str) -> io::Result<Vec<u8>> { Ok(Vec::new()) }
750750/// # fn write(&self, primary_namespace: &str, secondary_namespace: &str, key: &str, buf: Vec<u8>) -> io::Result<()> { Ok(()) }
751- /// # fn remove(&self, primary_namespace: &str, secondary_namespace: &str, key: &str) -> io::Result<()> { Ok(()) }
751+ /// # fn remove(&self, primary_namespace: &str, secondary_namespace: &str, key: &str, lazy: bool ) -> io::Result<()> { Ok(()) }
752752/// # fn list(&self, primary_namespace: &str, secondary_namespace: &str) -> io::Result<Vec<String>> { Ok(Vec::new()) }
753753/// # }
754754/// # struct Store {}
755755/// # impl lightning::util::persist::KVStore for Store {
756756/// # fn read(&self, primary_namespace: &str, secondary_namespace: &str, key: &str) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, io::Error>> + 'static + Send>> { todo!() }
757757/// # fn write(&self, primary_namespace: &str, secondary_namespace: &str, key: &str, buf: Vec<u8>) -> Pin<Box<dyn Future<Output = Result<(), io::Error>> + 'static + Send>> { todo!() }
758- /// # fn remove(&self, primary_namespace: &str, secondary_namespace: &str, key: &str) -> Pin<Box<dyn Future<Output = Result<(), io::Error>> + 'static + Send>> { todo!() }
758+ /// # fn remove(&self, primary_namespace: &str, secondary_namespace: &str, key: &str, lazy: bool ) -> Pin<Box<dyn Future<Output = Result<(), io::Error>> + 'static + Send>> { todo!() }
759759/// # fn list(&self, primary_namespace: &str, secondary_namespace: &str) -> Pin<Box<dyn Future<Output = Result<Vec<String>, io::Error>> + 'static + Send>> { todo!() }
760760/// # }
761761/// # use core::time::Duration;
@@ -2144,9 +2144,9 @@ mod tests {
21442144 }
21452145
21462146 fn remove (
2147- & self , primary_namespace : & str , secondary_namespace : & str , key : & str ,
2147+ & self , primary_namespace : & str , secondary_namespace : & str , key : & str , lazy : bool ,
21482148 ) -> lightning:: io:: Result < ( ) > {
2149- self . kv_store . remove ( primary_namespace, secondary_namespace, key)
2149+ self . kv_store . remove ( primary_namespace, secondary_namespace, key, lazy )
21502150 }
21512151
21522152 fn list (
0 commit comments