@@ -1036,7 +1036,7 @@ impl BackgroundProcessor {
1036
1036
/// # Example
1037
1037
/// ```
1038
1038
/// # use lightning_background_processor::*;
1039
- /// let config = BackgroundProcessorBuilder ::new(
1039
+ /// let config = BackgroundProcessorConfigBuilder ::new(
1040
1040
/// persister,
1041
1041
/// event_handler,
1042
1042
/// chain_monitor,
@@ -1168,7 +1168,7 @@ impl BackgroundProcessor {
1168
1168
/// including required components (like the channel manager and peer manager) and optional
1169
1169
/// components (like the onion messenger and scorer).
1170
1170
///
1171
- /// The configuration can be constructed using [`BackgroundProcessorBuilder `], which provides
1171
+ /// The configuration can be constructed using [`BackgroundProcessorConfigBuilder `], which provides
1172
1172
/// a convenient builder pattern for setting up both required and optional components.
1173
1173
///
1174
1174
/// This same configuration can be used for
@@ -1186,7 +1186,7 @@ impl BackgroundProcessor {
1186
1186
/// # Example
1187
1187
/// ```
1188
1188
/// # use lightning_background_processor::*;
1189
- /// let config = BackgroundProcessorBuilder ::new(
1189
+ /// let config = BackgroundProcessorConfigBuilder ::new(
1190
1190
/// persister,
1191
1191
/// event_handler,
1192
1192
/// chain_monitor,
@@ -1256,13 +1256,13 @@ pub struct BackgroundProcessorConfig<
1256
1256
_phantom : PhantomData < ( & ' a ( ) , CF , T , F , P ) > ,
1257
1257
}
1258
1258
1259
- /// A builder for constructing a [`BackgroundProcessor `] with optional components.
1259
+ /// A builder for constructing a [`BackgroundProcessorConfig `] with optional components.
1260
1260
///
1261
- /// This builder provides a flexible and type-safe way to construct a [`BackgroundProcessor `]
1261
+ /// This builder provides a flexible and type-safe way to construct a [`BackgroundProcessorConfig `]
1262
1262
/// with optional components like `onion_messenger` and `scorer`. It helps avoid specifying
1263
1263
/// concrete types for components that aren't being used.
1264
1264
#[ cfg( feature = "std" ) ]
1265
- pub struct BackgroundProcessorBuilder <
1265
+ pub struct BackgroundProcessorConfigBuilder <
1266
1266
' a ,
1267
1267
UL : ' static + Deref + Send + Sync ,
1268
1268
CF : ' static + Deref + Send + Sync ,
@@ -1331,7 +1331,8 @@ impl<
1331
1331
PM : ' static + Deref + Send + Sync ,
1332
1332
S : ' static + Deref < Target = SC > + Send + Sync ,
1333
1333
SC : for < ' b > WriteableScore < ' b > ,
1334
- > BackgroundProcessorBuilder < ' a , UL , CF , T , F , G , L , P , EH , PS , M , CM , OM , PGS , RGS , PM , S , SC >
1334
+ >
1335
+ BackgroundProcessorConfigBuilder < ' a , UL , CF , T , F , G , L , P , EH , PS , M , CM , OM , PGS , RGS , PM , S , SC >
1335
1336
where
1336
1337
UL :: Target : ' static + UtxoLookup ,
1337
1338
CF :: Target : ' static + chain:: Filter ,
@@ -2337,7 +2338,7 @@ mod tests {
2337
2338
Persister :: new ( data_dir) . with_manager_error ( std:: io:: ErrorKind :: Other , "test" ) ,
2338
2339
) ;
2339
2340
2340
- let config = BackgroundProcessorBuilder :: new (
2341
+ let config = BackgroundProcessorConfigBuilder :: new (
2341
2342
persister,
2342
2343
|_: _ | async { Ok ( ( ) ) } ,
2343
2344
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -2821,7 +2822,7 @@ mod tests {
2821
2822
let data_dir = nodes[ 0 ] . kv_store . get_data_dir ( ) ;
2822
2823
let persister = Arc :: new ( Persister :: new ( data_dir) . with_graph_persistence_notifier ( sender) ) ;
2823
2824
2824
- let config = BackgroundProcessorBuilder :: new (
2825
+ let config = BackgroundProcessorConfigBuilder :: new (
2825
2826
persister,
2826
2827
|_: _ | async { Ok ( ( ) ) } ,
2827
2828
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -3039,7 +3040,7 @@ mod tests {
3039
3040
3040
3041
let ( exit_sender, exit_receiver) = tokio:: sync:: watch:: channel ( ( ) ) ;
3041
3042
3042
- let config = BackgroundProcessorBuilder :: new (
3043
+ let config = BackgroundProcessorConfigBuilder :: new (
3043
3044
persister,
3044
3045
event_handler,
3045
3046
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -3100,7 +3101,7 @@ mod tests {
3100
3101
let data_dir = nodes[ 0 ] . kv_store . get_data_dir ( ) ;
3101
3102
let persister = Arc :: new ( Persister :: new ( data_dir) ) ;
3102
3103
let event_handler = |_: _ | Ok ( ( ) ) ;
3103
- let config = BackgroundProcessorBuilder :: new (
3104
+ let config = BackgroundProcessorConfigBuilder :: new (
3104
3105
persister,
3105
3106
event_handler,
3106
3107
nodes[ 0 ] . chain_monitor . clone ( ) ,
0 commit comments