@@ -120,7 +120,6 @@ pub const NOTHING_TO_DO: &str = "nothing_to_do";
120120
121121#[ derive( Clone , PartialEq , Debug , Serialize , Deserialize ) ]
122122pub struct BeaconProcessorConfig {
123- pub max_workers : usize ,
124123 pub max_io_bound_workers : usize ,
125124 pub max_cpu_bound_workers : usize ,
126125 pub max_work_event_queue_len : usize ,
@@ -133,7 +132,6 @@ pub struct BeaconProcessorConfig {
133132impl Default for BeaconProcessorConfig {
134133 fn default ( ) -> Self {
135134 Self {
136- max_workers : cmp:: max ( 1 , num_cpus:: get ( ) ) ,
137135 max_io_bound_workers : MAX_IO_BOUND_WORKERS ,
138136 max_cpu_bound_workers : cmp:: max ( 1 , num_cpus:: get ( ) ) ,
139137 max_work_event_queue_len : DEFAULT_MAX_WORK_EVENT_QUEUE_LEN ,
@@ -431,7 +429,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
431429 /// - Performed immediately, if a worker is available.
432430 /// - Queued for later processing, if no worker is currently available.
433431 ///
434- /// Only `self.config.max_workers ` will ever be spawned at one time. Each worker is a `tokio` task
432+ /// Only `self.config.max_cpu_bound_workers + self.config.max_io_bound_workers ` will ever be spawned at one time. Each worker is a `tokio` task
435433 /// started with `spawn_blocking`.
436434 ///
437435 /// The optional `work_journal_tx` allows for an outside process to receive a log of all work
@@ -1095,7 +1093,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
10951093 // following head.
10961094 //
10971095 // Check attester slashings before proposer slashings since they have the
1098- // potential to slash multiple validators at once .
1096+ // potential to slash multiple validators at ongice .
10991097 . or_else ( || {
11001098 work_queues
11011099 . gossip_attester_slashing_queue
0 commit comments