From d197fdd85282f6a7fda38bcb20283796255d6c1a Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 24 Mar 2026 18:02:15 +0100 Subject: [PATCH 1/2] remove next_session_id, make ID 0-based --- examples/benchmark.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/benchmark.rs b/examples/benchmark.rs index 21247e6..fa39ef2 100644 --- a/examples/benchmark.rs +++ b/examples/benchmark.rs @@ -61,11 +61,10 @@ async fn main() -> Result<(), Box> { let mut sessions = JoinSet::new(); let mut reports = Vec::new(); let mut spawned_sessions = 0usize; - let mut next_session_id = 1usize; spawn_session( &mut sessions, - next_session_id, + spawned_sessions, Arc::clone(&model), license.clone(), config.clone(), @@ -85,10 +84,9 @@ async fn main() -> Result<(), Box> { let first_failed_report = loop { tokio::select! { _ = spawn_ticks.tick() => { - next_session_id += 1; spawn_session( &mut sessions, - next_session_id, + spawned_sessions, Arc::clone(&model), license.clone(), config.clone(), From d5d77a14d0caa438465aee76c5c514d802950a00 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 24 Mar 2026 18:20:48 +0100 Subject: [PATCH 2/2] make session IDs 1-based again --- examples/benchmark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/benchmark.rs b/examples/benchmark.rs index fa39ef2..df8d313 100644 --- a/examples/benchmark.rs +++ b/examples/benchmark.rs @@ -186,7 +186,7 @@ async fn main() -> Result<(), Box> { fn spawn_session( sessions: &mut JoinSet, - session_id: usize, + previous_session_id: usize, model: Arc>, license: String, config: ProcessorConfig, @@ -195,7 +195,7 @@ fn spawn_session( stop: Arc, ) { sessions.spawn(run_session( - session_id, + previous_session_id + 1, model, license, config,