mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Use select_biased! in Peer to avoid non-determinism
This commit is contained in:
parent
b2aa961b4f
commit
60ef74a18f
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ where
|
|||
let read_message = self.reader.read_message().fuse();
|
||||
futures::pin_mut!(read_message);
|
||||
loop {
|
||||
futures::select! {
|
||||
futures::select_biased! {
|
||||
incoming = read_message => match incoming {
|
||||
Ok(incoming) => {
|
||||
Self::handle_incoming_message(incoming, &self.peer, self.connection_id, &self.response_channels).await;
|
||||
|
|
Loading…
Reference in a new issue