@@ -81,7 +81,7 @@ use crate::tx_broadcaster::TransactionBroadcaster;
8181use crate :: types:: {
8282 AsyncPersister , ChainMonitor , ChannelManager , DynStore , DynStoreRef , DynStoreWrapper ,
8383 GossipSync , Graph , HRNResolver , KeysManager , MessageRouter , OnionMessenger , PaymentStore ,
84- PeerManager , PendingPaymentStore , SyncAndAsyncKVStore ,
84+ PeerManager , PendingPaymentStore ,
8585} ;
8686use crate :: wallet:: persist:: KVStoreWalletPersister ;
8787use crate :: wallet:: Wallet ;
@@ -176,17 +176,17 @@ pub enum BuildError {
176176 RuntimeSetupFailed ,
177177 /// We failed to read data from the [`KVStore`].
178178 ///
179- /// [`KVStore`]: lightning::util::persist::KVStoreSync
179+ /// [`KVStore`]: lightning::util::persist::KVStore
180180 ReadFailed ,
181181 /// We failed to write data to the [`KVStore`].
182182 ///
183- /// [`KVStore`]: lightning::util::persist::KVStoreSync
183+ /// [`KVStore`]: lightning::util::persist::KVStore
184184 WriteFailed ,
185185 /// We failed to access the given `storage_dir_path`.
186186 StoragePathAccessFailed ,
187187 /// We failed to setup our [`KVStore`].
188188 ///
189- /// [`KVStore`]: lightning::util::persist::KVStoreSync
189+ /// [`KVStore`]: lightning::util::persist::KVStore
190190 KVStoreSetupFailed ,
191191 /// We failed to setup the onchain wallet.
192192 WalletSetupFailed ,
@@ -826,7 +826,7 @@ impl NodeBuilder {
826826 }
827827
828828 /// Builds a [`Node`] instance according to the options previously configured.
829- pub fn build_with_store < S : SyncAndAsyncKVStore + Send + Sync + ' static > (
829+ pub fn build_with_store < S : KVStore + Send + Sync + ' static > (
830830 & self , node_entropy : NodeEntropy , kv_store : S ,
831831 ) -> Result < Node , BuildError > {
832832 let logger = setup_logger ( & self . log_writer_config , & self . config ) ?;
@@ -845,14 +845,14 @@ impl NodeBuilder {
845845 }
846846 }
847847
848- fn build_with_store_and_logger < S : SyncAndAsyncKVStore + Send + Sync + ' static > (
848+ fn build_with_store_and_logger < S : KVStore + Send + Sync + ' static > (
849849 & self , node_entropy : NodeEntropy , kv_store : S , logger : Arc < Logger > ,
850850 ) -> Result < Node , BuildError > {
851851 let runtime = self . setup_runtime ( & logger) ?;
852852 self . build_with_store_runtime_and_logger ( node_entropy, kv_store, runtime, logger)
853853 }
854854
855- fn build_with_store_runtime_and_logger < S : SyncAndAsyncKVStore + Send + Sync + ' static > (
855+ fn build_with_store_runtime_and_logger < S : KVStore + Send + Sync + ' static > (
856856 & self , node_entropy : NodeEntropy , kv_store : S , runtime : Arc < Runtime > , logger : Arc < Logger > ,
857857 ) -> Result < Node , BuildError > {
858858 let seed_bytes = node_entropy. to_seed_bytes ( ) ;
@@ -1346,7 +1346,7 @@ impl ArcedNodeBuilder {
13461346 /// Builds a [`Node`] instance according to the options previously configured.
13471347 // Note that the generics here don't actually work for Uniffi, but we don't currently expose
13481348 // this so its not needed.
1349- pub fn build_with_store < S : SyncAndAsyncKVStore + Send + Sync + ' static > (
1349+ pub fn build_with_store < S : KVStore + Send + Sync + ' static > (
13501350 & self , node_entropy : Arc < NodeEntropy > , kv_store : S ,
13511351 ) -> Result < Arc < Node > , BuildError > {
13521352 self . inner . read ( ) . expect ( "lock" ) . build_with_store ( * node_entropy, kv_store) . map ( Arc :: new)
0 commit comments