Skip to content

Commit aaf778c

Browse files
committed
f Account for KVStore::read returning a Vec<u8>
1 parent b26cdd1 commit aaf778c

File tree

1 file changed

+2
-4
lines changed
  • lightning-background-processor/src

1 file changed

+2
-4
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ mod tests {
868868
use lightning::util::ser::Writeable;
869869
use lightning::util::test_utils;
870870
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};
871-
use lightning_persister::fs_store::{FilesystemStore, FilesystemReader};
871+
use lightning_persister::fs_store::FilesystemStore;
872872
use std::collections::VecDeque;
873873
use std::{fs, env};
874874
use std::path::PathBuf;
@@ -982,9 +982,7 @@ mod tests {
982982
}
983983

984984
impl KVStore for Persister {
985-
type Reader = FilesystemReader;
986-
987-
fn read(&self, namespace: &str, key: &str) -> lightning::io::Result<Self::Reader> {
985+
fn read(&self, namespace: &str, key: &str) -> lightning::io::Result<Vec<u8>> {
988986
self.kv_store.read(namespace, key)
989987
}
990988

0 commit comments

Comments
 (0)