Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use `send` instead of `feed` on terminal events channel (#23631)
Michael Sloanec5d02d5c27c
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 5fb8941ebc7..c6c5486126d 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -493,7 +493,7 @@ impl TerminalBuilder {while let Some(event) = events_rx.next().await {// Process the first event immediately to reduce latencyaccumulated_events_tx- .feed(EventOrAccumulator::Event(event))+ .send(EventOrAccumulator::Event(event)).await?;'outer: loop {let start_time = Instant::now();@@ -520,7 +520,7 @@ impl TerminalBuilder {}}accumulated_events_tx- .feed(EventOrAccumulator::Accumulator(event_accumulator))+ .send(EventOrAccumulator::Accumulator(event_accumulator)).await?;}}