From 332b0eb5903b5e0faf61bb30fa8571f690fdc18c Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Mon, 11 May 2026 21:07:45 +0100 Subject: [PATCH 1/2] fix: change work_item_batch_size type from usize to u64 in CLI and config --- forester/src/cli.rs | 4 ++-- forester/src/config.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/forester/src/cli.rs b/forester/src/cli.rs index 359ce9f0f0..f67ce54b06 100644 --- a/forester/src/cli.rs +++ b/forester/src/cli.rs @@ -306,10 +306,10 @@ pub struct StartArgs { #[arg( long, env = "WORK_ITEM_BATCH_SIZE", - value_parser = clap::value_parser!(usize).range(1..), + value_parser = clap::value_parser!(u64).range(1..), help = "Number of queue items to process per batch cycle. Smaller values reduce blockhash expiry risk, larger values reduce per-batch overhead." )] - pub work_item_batch_size: Option, + pub work_item_batch_size: Option, #[arg( long, diff --git a/forester/src/config.rs b/forester/src/config.rs index 5f11d1d676..8f88cecf22 100644 --- a/forester/src/config.rs +++ b/forester/src/config.rs @@ -431,7 +431,7 @@ impl ForesterConfig { .transpose()?, min_queue_items: args.min_queue_items, enable_v1_multi_nullify: args.enable_v1_multi_nullify, - work_item_batch_size: args.work_item_batch_size.unwrap_or(50).max(1), + work_item_batch_size: args.work_item_batch_size.unwrap_or(50) as usize, }) } From aa94dd55b159d0b727c56478e6be14d571e5ecc8 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Tue, 12 May 2026 09:01:10 +0100 Subject: [PATCH 2/2] fix lint --- scripts/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index b440380898..abce5885e9 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -20,7 +20,7 @@ cargo clippy --workspace --all-features --all-targets -- -D warnings # Check that READMEs are up-to-date with cargo-rdme echo "Checking READMEs are up-to-date..." if ! command -v cargo-rdme &> /dev/null; then - cargo install cargo-rdme + cargo install --locked cargo-rdme fi for toml in $(find program-libs sdk-libs -name '.cargo-rdme.toml' -type f); do crate_dir=$(dirname "$toml")