]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f Account for `KVStore::read` returning a `Vec<u8>`
authorElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 10:30:28 +0000 (12:30 +0200)
committerElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 11:59:26 +0000 (13:59 +0200)
lightning-background-processor/src/lib.rs

index 92a044cf6601d75f54806460ab98d62292146900..ed9091552f839a505ee8e244f29a5e2ae64ca992 100644 (file)
@@ -868,7 +868,7 @@ mod tests {
        use lightning::util::ser::Writeable;
        use lightning::util::test_utils;
        use lightning::util::persist::{KVStore, CHANNEL_MANAGER_PERSISTENCE_NAMESPACE, CHANNEL_MANAGER_PERSISTENCE_KEY, NETWORK_GRAPH_PERSISTENCE_NAMESPACE, NETWORK_GRAPH_PERSISTENCE_KEY, SCORER_PERSISTENCE_NAMESPACE, SCORER_PERSISTENCE_KEY};
-       use lightning_persister::fs_store::{FilesystemStore, FilesystemReader};
+       use lightning_persister::fs_store::FilesystemStore;
        use std::collections::VecDeque;
        use std::{fs, env};
        use std::path::PathBuf;
@@ -982,9 +982,7 @@ mod tests {
        }
 
        impl KVStore for Persister {
-               type Reader = FilesystemReader;
-
-               fn read(&self, namespace: &str, key: &str) -> lightning::io::Result<Self::Reader> {
+               fn read(&self, namespace: &str, key: &str) -> lightning::io::Result<Vec<u8>> {
                        self.kv_store.read(namespace, key)
                }