From c108a39f2c9968dd1d1e5b3ba20d584280950c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20G=C3=B6ttsch?= Date: Fri, 17 Jul 2026 09:20:01 +0200 Subject: [PATCH] fix(cli): use Duration::from_mins for token wait timeout Satisfies clippy::duration_suboptimal_units by expressing the 2-minute browser-auth timeout with from_mins(2) instead of from_secs(120). --- src/presentation/cli/tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/presentation/cli/tokens.rs b/src/presentation/cli/tokens.rs index ed38b30..008ce8e 100644 --- a/src/presentation/cli/tokens.rs +++ b/src/presentation/cli/tokens.rs @@ -83,7 +83,7 @@ pub async fn create_token(client: &BrewlogClient, cmd: CreateTokenCommand) -> Re result = rx => { result.context("callback server closed without receiving a token")? } - () = tokio::time::sleep(std::time::Duration::from_secs(120)) => { + () = tokio::time::sleep(std::time::Duration::from_mins(2)) => { return Err(anyhow!("timed out waiting for browser authentication (2 minutes)")); } };