codex: fix lint regression on PR #13880

This commit is contained in:
Ahmed Ibrahim
2026-03-07 09:42:19 -08:00
parent a855af2817
commit 4584c56168

View File

@@ -1106,8 +1106,6 @@ async fn wait_for_streamable_http_server(
let deadline = Instant::now() + timeout;
let metadata_url = format!("http://{address}/.well-known/oauth-authorization-server/mcp");
let client = Client::builder().no_proxy().build()?;
let mut attempts = 0u32;
loop {
if let Some(status) = server_child.try_wait()? {
return Err(anyhow::anyhow!(
@@ -1123,8 +1121,6 @@ async fn wait_for_streamable_http_server(
));
}
attempts += 1;
match tokio::time::timeout(remaining, client.get(&metadata_url).send()).await {
Ok(Ok(response)) if response.status() == StatusCode::OK => return Ok(()),
Ok(Ok(response)) => {