From: Elias Rohrer Date: Wed, 23 Aug 2023 10:30:28 +0000 (+0200) Subject: f Account for `KVStore::read` returning a `Vec` X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a7a4da6a551e98ca1404ae53e642a6a8d0357237;p=rust-lightning f Account for `KVStore::read` returning a `Vec` --- diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index 92a044cf6..ed9091552 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -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 { + fn read(&self, namespace: &str, key: &str) -> lightning::io::Result> { self.kv_store.read(namespace, key) }