File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,10 +306,10 @@ pub struct StartArgs {
306306 #[ arg(
307307 long,
308308 env = "WORK_ITEM_BATCH_SIZE" ,
309- value_parser = clap:: value_parser!( usize ) . range( 1 ..) ,
309+ value_parser = clap:: value_parser!( u64 ) . range( 1 ..) ,
310310 help = "Number of queue items to process per batch cycle. Smaller values reduce blockhash expiry risk, larger values reduce per-batch overhead."
311311 ) ]
312- pub work_item_batch_size : Option < usize > ,
312+ pub work_item_batch_size : Option < u64 > ,
313313
314314 #[ arg(
315315 long,
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ impl ForesterConfig {
431431 . transpose ( ) ?,
432432 min_queue_items : args. min_queue_items ,
433433 enable_v1_multi_nullify : args. enable_v1_multi_nullify ,
434- work_item_batch_size : args. work_item_batch_size . unwrap_or ( 50 ) . max ( 1 ) ,
434+ work_item_batch_size : args. work_item_batch_size . unwrap_or ( 50 ) as usize ,
435435 } )
436436 }
437437
You can’t perform that action at this time.
0 commit comments