@@ -754,6 +754,7 @@ pub async fn process_events_async<
754754	Sleeper :  Fn ( Duration )  -> SleepFuture , 
755755	FetchTime :  Fn ( )  -> Option < Duration > , 
756756> ( 
757+ 	#[ rustfmt:: skip]  
757758	config :  BackgroundProcessorConfig < 
758759		' a , 
759760		UL , 
@@ -1083,6 +1084,7 @@ impl BackgroundProcessor {
10831084		S :  ' static  + Deref < Target  = SC >  + Send  + Sync , 
10841085		SC :  for < ' b >  WriteableScore < ' b > , 
10851086	> ( 
1087+ 		#[ rustfmt:: skip]  
10861088		config :  BackgroundProcessorConfig < 
10871089			' a , 
10881090			UL , 
@@ -1272,7 +1274,7 @@ pub struct BackgroundProcessorConfig<
12721274/// This builder provides a flexible and type-safe way to construct a [`BackgroundProcessorConfig`] 
12731275/// with optional components like `onion_messenger` and `scorer`. It helps avoid specifying 
12741276/// concrete types for components that aren't being used. 
1275- #[ cfg( feature = "std" ) ]  
1277+ #[ cfg( any ( feature = "std" ,  feature =  "futures" ) ) ]  
12761278pub  struct  BackgroundProcessorConfigBuilder < 
12771279	' a , 
12781280	UL :  ' static  + Deref  + Send  + Sync , 
@@ -1282,7 +1284,10 @@ pub struct BackgroundProcessorConfigBuilder<
12821284	G :  ' static  + Deref < Target  = NetworkGraph < L > >  + Send  + Sync , 
12831285	L :  ' static  + Deref  + Send  + Sync , 
12841286	P :  ' static  + Deref  + Send  + Sync , 
1287+ 	#[ cfg( feature = "std" ) ]   
12851288	EH :  ' static  + EventHandler  + Send , 
1289+ 	#[ cfg( feature = "futures" ) ]   
1290+ 	EH :  ' static  + Fn ( Event )  -> core:: future:: Future < Output  = Result < ( ) ,  ReplayEvent > > , 
12861291	PS :  ' static  + Deref  + Send , 
12871292	M :  ' static 
12881293		+ Deref < Target  = ChainMonitor < <CM :: Target  as  AChannelManager >:: Signer ,  CF ,  T ,  F ,  L ,  P > > 
@@ -1319,7 +1324,7 @@ pub struct BackgroundProcessorConfigBuilder<
13191324	_phantom :  PhantomData < ( & ' a  ( ) ,  CF ,  T ,  F ,  P ) > , 
13201325} 
13211326
1322- #[ cfg( feature = "std" ) ]  
1327+ #[ cfg( any ( feature = "std" ,  feature =  "futures" ) ) ]  
13231328impl < 
13241329		' a , 
13251330		UL :  ' static  + Deref  + Send  + Sync , 
@@ -1329,7 +1334,10 @@ impl<
13291334		G :  ' static  + Deref < Target  = NetworkGraph < L > >  + Send  + Sync , 
13301335		L :  ' static  + Deref  + Send  + Sync , 
13311336		P :  ' static  + Deref  + Send  + Sync , 
1337+ 		#[ cfg( feature = "std" ) ]   
13321338		EH :  ' static  + EventHandler  + Send , 
1339+ 		#[ cfg( feature = "futures" ) ]   
1340+ 		EH :  ' static  + Fn ( Event )  -> core:: future:: Future < Output  = Result < ( ) ,  ReplayEvent > > , 
13331341		PS :  ' static  + Deref  + Send , 
13341342		M :  ' static 
13351343			+ Deref < Target  = ChainMonitor < <CM :: Target  as  AChannelManager >:: Signer ,  CF ,  T ,  F ,  L ,  P > > 
@@ -3196,7 +3204,7 @@ mod tests {
31963204		// Check scorer is persisted 
31973205		let  filepath =
31983206			get_full_filepath ( format ! ( "{}_persister_0" ,  & persist_dir) ,  "scorer" . to_string ( ) ) ; 
3199- 		check_persisted_data ! ( nodes[ 0 ] . scorer,  filepath) ; 
3207+ 		check_persisted_data ! ( nodes[ 0 ] . scorer,  filepath. clone ( ) ) ; 
32003208
32013209		if  !std:: thread:: panicking ( )  { 
32023210			bg_processor. stop ( ) . unwrap ( ) ; 
0 commit comments