Skip to content

Commit

Permalink
change tokio select ref
Browse files Browse the repository at this point in the history
  • Loading branch information
taddes committed Jul 1, 2024
1 parent bd58d94 commit 631c91b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoconnect/autoconnect-ws/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::sync::Arc;

use actix_ws::{CloseReason, Message};
use futures::{channel::mpsc, Stream, StreamExt};
use tokio::select;
use tokio::time::timeout;

use autoconnect_common::protocol::{ServerMessage, ServerNotification};
Expand Down Expand Up @@ -152,7 +151,7 @@ async fn identified_ws(

let mut ping_manager = PingManager::new(client.app_settings()).await;
let close_reason = loop {
select! {
tokio::select! {
maybe_result = msg_stream.next() => {
let Some(result) = maybe_result else {
trace!("identified_ws: msg_stream EOF");
Expand Down

0 comments on commit 631c91b

Please sign in to comment.