Add better error message to anisette timeout

This commit is contained in:
nab138
2026-02-23 07:47:19 -05:00
parent 64f139a128
commit f5dc51b23d

View File

@@ -236,10 +236,15 @@ impl RemoteV3AnisetteProvider {
debug!("Starting provisioning at {}", websocket_url); debug!("Starting provisioning at {}", websocket_url);
let (mut ws_stream, _) = timeout( let (mut ws_stream, _) = timeout(
Duration::from_secs(10), Duration::from_secs(15),
tokio_tungstenite::connect_async(&websocket_url), tokio_tungstenite::connect_async(&websocket_url),
) )
.await .await
.map_err(|_| {
report!(
"Timed out provisioning anisette. Choose a different anisette server and try again."
)
})
.context("Failed to connect to provisioning socket")? .context("Failed to connect to provisioning socket")?
.context("Failed to connect to provisioning socket")?; .context("Failed to connect to provisioning socket")?;