mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
chore: document intentional await-holding cases
This commit is contained in:
@@ -229,6 +229,10 @@ impl ResponsesWebsocketConnection {
|
||||
|
||||
let current_span = Span::current();
|
||||
tokio::spawn(
|
||||
#[expect(
|
||||
clippy::await_holding_invalid_type,
|
||||
reason = "the guard serializes exclusive use of the websocket stream for the lifetime of the response stream"
|
||||
)]
|
||||
async move {
|
||||
if let Some(model) = server_model {
|
||||
let _ = tx_event.send(Ok(ResponseEvent::ServerModel(model))).await;
|
||||
|
||||
Reference in New Issue
Block a user