@@ -487,22 +487,22 @@ impl Simulation {
487
487
random_activity_nodes. keys ( ) . cloned ( ) . collect ( )
488
488
} ;
489
489
490
- let producer_senders =
490
+ let consumer_channels =
491
491
self . dispatch_consumers ( collecting_nodes, event_sender. clone ( ) , & mut tasks) ;
492
492
493
493
// Next, we'll spin up our actual activity generator that will be responsible for triggering the activity that
494
494
// has been configured (if any), passing in the channel that is used to notify data collection that events have
495
495
// been generated. Alternatively, we'll generate random activity if there is no activity specified.
496
496
if !self . activity . is_empty ( ) {
497
- self . dispatch_activity_producers ( producer_senders , & mut tasks)
497
+ self . dispatch_activity_producers ( consumer_channels , & mut tasks)
498
498
. await ;
499
499
} else {
500
500
log:: info!(
501
501
"Generating random activity with multiplier: {}, average payment amount: {}." ,
502
502
self . activity_multiplier,
503
503
self . expected_payment_msat
504
504
) ;
505
- self . dispatch_random_producers ( random_activity_nodes, producer_senders , & mut tasks)
505
+ self . dispatch_random_producers ( random_activity_nodes, consumer_channels , & mut tasks)
506
506
. await ?;
507
507
}
508
508
@@ -670,7 +670,7 @@ impl Simulation {
670
670
async fn dispatch_random_producers (
671
671
& self ,
672
672
node_capacities : HashMap < PublicKey , ( NodeInfo , u64 ) > ,
673
- producer_channels : HashMap < PublicKey , Sender < SimulationEvent > > ,
673
+ consumer_channels : HashMap < PublicKey , Sender < SimulationEvent > > ,
674
674
tasks : & mut JoinSet < ( ) > ,
675
675
) -> Result < ( ) , SimulationError > {
676
676
let network_generator = Arc :: new ( Mutex :: new (
@@ -683,7 +683,7 @@ impl Simulation {
683
683
network_generator. lock( ) . await
684
684
) ;
685
685
686
- for ( pk, sender) in producer_channels . into_iter ( ) {
686
+ for ( pk, sender) in consumer_channels . into_iter ( ) {
687
687
let ( info, source_capacity) = match node_capacities. get ( & pk) {
688
688
Some ( ( info, capacity) ) => ( info. clone ( ) , * capacity) ,
689
689
None => {
0 commit comments