@@ -358,8 +358,8 @@ macro_rules! define_run_body {
358
358
/// Processes background events in a future.
359
359
///
360
360
/// `sleeper` should return a future which completes in the given amount of time and returns a
361
- /// boolean indicating whether the background processing should continue . Once `sleeper` returns a
362
- /// future which outputs false , the loop will exit and this function's future will complete.
361
+ /// boolean indicating whether the background processing should exit . Once `sleeper` returns a
362
+ /// future which outputs true , the loop will exit and this function's future will complete.
363
363
///
364
364
/// See [`BackgroundProcessor::start`] for information on which actions this handles.
365
365
#[ cfg( feature = "futures" ) ]
@@ -411,13 +411,13 @@ where
411
411
UMH :: Target : ' static + CustomMessageHandler ,
412
412
PS :: Target : ' static + Persister < ' a , Signer , CW , T , K , F , L , SC > ,
413
413
{
414
- let mut should_continue = true ;
414
+ let mut should_break = true ;
415
415
define_run_body ! ( persister, event_handler, chain_monitor, channel_manager,
416
- gossip_sync, peer_manager, logger, scorer, should_continue , {
416
+ gossip_sync, peer_manager, logger, scorer, should_break , {
417
417
select_biased! {
418
418
_ = channel_manager. get_persistable_update_future( ) . fuse( ) => true ,
419
- cont = sleeper( Duration :: from_millis( 100 ) ) . fuse( ) => {
420
- should_continue = cont ;
419
+ exit = sleeper( Duration :: from_millis( 100 ) ) . fuse( ) => {
420
+ should_break = exit ;
421
421
false
422
422
}
423
423
}
0 commit comments