From b4611343701b38c1bdc5340977b0001206b948f0 Mon Sep 17 00:00:00 2001 From: Martin Vassor Date: Wed, 17 Apr 2024 15:46:50 +0100 Subject: [PATCH] Make simple_auth longer to reduce variation --- .../simple_auth/simple_auth_implementation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Running examples/simple_auth/simple_auth_implementation.rs b/examples/Running examples/simple_auth/simple_auth_implementation.rs index 8457fee..12a0edf 100644 --- a/examples/Running examples/simple_auth/simple_auth_implementation.rs +++ b/examples/Running examples/simple_auth/simple_auth_implementation.rs @@ -1,17 +1,17 @@ async fn C(role: &mut C) -> Result<(), Box> { try_session(role, |s: AuthC<'_, _>| async { - let mut s = s.send(SetPw(10)).await?; + let mut s = s.send(SetPw(10000000)).await?; let mut cur_attempt = 0; loop { let s_send = s.send(Password(cur_attempt)).await?; cur_attempt += 1; match s_send.branch().await? { AuthC3::Success(_, s_bra) => { - println!("Success"); + println!("Success ({} attempts)", cur_attempt); return Ok(((), s_bra)); } AuthC3::Failure(_, s_bra) => { - println!("Failure"); + //println!("Failure"); let (_, s_retres) = s_bra.receive().await?; s = s_retres.send(RetRes(0)).await?; }