@@ -1108,7 +1108,7 @@ impl BackgroundProcessor {
1108
1108
/// # Example
1109
1109
/// ```
1110
1110
/// # use lightning_background_processor::*;
1111
- /// let config = BackgroundProcessorBuilder ::new(
1111
+ /// let config = BackgroundProcessorConfigBuilder ::new(
1112
1112
/// persister,
1113
1113
/// event_handler,
1114
1114
/// chain_monitor,
@@ -1240,7 +1240,7 @@ impl BackgroundProcessor {
1240
1240
/// including required components (like the channel manager and peer manager) and optional
1241
1241
/// components (like the onion messenger and scorer).
1242
1242
///
1243
- /// The configuration can be constructed using [`BackgroundProcessorBuilder `], which provides
1243
+ /// The configuration can be constructed using [`BackgroundProcessorConfigBuilder `], which provides
1244
1244
/// a convenient builder pattern for setting up both required and optional components.
1245
1245
///
1246
1246
/// This same configuration can be used for
@@ -1258,7 +1258,7 @@ impl BackgroundProcessor {
1258
1258
/// # Example
1259
1259
/// ```
1260
1260
/// # use lightning_background_processor::*;
1261
- /// let config = BackgroundProcessorBuilder ::new(
1261
+ /// let config = BackgroundProcessorConfigBuilder ::new(
1262
1262
/// persister,
1263
1263
/// event_handler,
1264
1264
/// chain_monitor,
@@ -1328,13 +1328,13 @@ pub struct BackgroundProcessorConfig<
1328
1328
_phantom : PhantomData < ( & ' a ( ) , CF , T , F , P ) > ,
1329
1329
}
1330
1330
1331
- /// A builder for constructing a [`BackgroundProcessor `] with optional components.
1331
+ /// A builder for constructing a [`BackgroundProcessorConfig `] with optional components.
1332
1332
///
1333
- /// This builder provides a flexible and type-safe way to construct a [`BackgroundProcessor `]
1333
+ /// This builder provides a flexible and type-safe way to construct a [`BackgroundProcessorConfig `]
1334
1334
/// with optional components like `onion_messenger` and `scorer`. It helps avoid specifying
1335
1335
/// concrete types for components that aren't being used.
1336
1336
#[ cfg( feature = "std" ) ]
1337
- pub struct BackgroundProcessorBuilder <
1337
+ pub struct BackgroundProcessorConfigBuilder <
1338
1338
' a ,
1339
1339
UL : ' static + Deref + Send + Sync ,
1340
1340
CF : ' static + Deref + Send + Sync ,
@@ -1403,7 +1403,8 @@ impl<
1403
1403
PM : ' static + Deref + Send + Sync ,
1404
1404
S : ' static + Deref < Target = SC > + Send + Sync ,
1405
1405
SC : for < ' b > WriteableScore < ' b > ,
1406
- > BackgroundProcessorBuilder < ' a , UL , CF , T , F , G , L , P , EH , PS , M , CM , OM , PGS , RGS , PM , S , SC >
1406
+ >
1407
+ BackgroundProcessorConfigBuilder < ' a , UL , CF , T , F , G , L , P , EH , PS , M , CM , OM , PGS , RGS , PM , S , SC >
1407
1408
where
1408
1409
UL :: Target : ' static + UtxoLookup ,
1409
1410
CF :: Target : ' static + chain:: Filter ,
@@ -2428,7 +2429,7 @@ mod tests {
2428
2429
Persister :: new ( data_dir) . with_manager_error ( std:: io:: ErrorKind :: Other , "test" ) ,
2429
2430
) ;
2430
2431
2431
- let config = BackgroundProcessorBuilder :: new (
2432
+ let config = BackgroundProcessorConfigBuilder :: new (
2432
2433
persister,
2433
2434
|_: _ | async { Ok ( ( ) ) } ,
2434
2435
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -2939,7 +2940,7 @@ mod tests {
2939
2940
let data_dir = nodes[ 0 ] . kv_store . get_data_dir ( ) ;
2940
2941
let persister = Arc :: new ( Persister :: new ( data_dir) . with_graph_persistence_notifier ( sender) ) ;
2941
2942
2942
- let config = BackgroundProcessorBuilder :: new (
2943
+ let config = BackgroundProcessorConfigBuilder :: new (
2943
2944
persister,
2944
2945
|_: _ | async { Ok ( ( ) ) } ,
2945
2946
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -3160,7 +3161,7 @@ mod tests {
3160
3161
3161
3162
let ( exit_sender, exit_receiver) = tokio:: sync:: watch:: channel ( ( ) ) ;
3162
3163
3163
- let config = BackgroundProcessorBuilder :: new (
3164
+ let config = BackgroundProcessorConfigBuilder :: new (
3164
3165
persister,
3165
3166
event_handler,
3166
3167
nodes[ 0 ] . chain_monitor . clone ( ) ,
@@ -3223,7 +3224,7 @@ mod tests {
3223
3224
let data_dir = nodes[ 0 ] . kv_store . get_data_dir ( ) ;
3224
3225
let persister = Arc :: new ( Persister :: new ( data_dir) ) ;
3225
3226
let event_handler = |_: _ | Ok ( ( ) ) ;
3226
- let config = BackgroundProcessorBuilder :: new (
3227
+ let config = BackgroundProcessorConfigBuilder :: new (
3227
3228
persister,
3228
3229
event_handler,
3229
3230
nodes[ 0 ] . chain_monitor . clone ( ) ,
0 commit comments