mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Box the WebSocket dial future (#39726)
## What changed Box `dialer::connect` before awaiting it in `WebSocketConnector::connect`, erasing the dialer's concrete future type at the connector boundary. GitOrigin-RevId: 617a2e4fd5bd61a408281973452e7b71b104bff2
This commit is contained in:
@@ -10,6 +10,7 @@ use std::task::Poll;
|
||||
use codex_http_client::BuildCustomCaTransportError;
|
||||
use codex_http_client::HttpClientFactory;
|
||||
use codex_http_client::build_rustls_client_config_with_custom_ca;
|
||||
use futures::FutureExt;
|
||||
use futures::Sink;
|
||||
use futures::Stream;
|
||||
use rustls::ClientConfig;
|
||||
@@ -105,6 +106,7 @@ impl WebSocketConnector {
|
||||
proxy_route,
|
||||
self.tcp_nodelay,
|
||||
)
|
||||
.boxed()
|
||||
.await?;
|
||||
Ok((WebSocketConnection { inner }, response))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user