From a7a4da6a551e98ca1404ae53e642a6a8d0357237 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 23 Aug 2023 12:30:28 +0200 Subject: [PATCH] f Account for `KVStore::read` returning a `Vec` --- lightning-background-processor/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) } -- 2.39.5