mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
codex: fix lint regression on PR #13880
This commit is contained in:
@@ -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)) => {
|
||||
|
||||
Reference in New Issue
Block a user