Skip to content

Commit

Permalink
fix latest nightly issues
Browse files Browse the repository at this point in the history
  • Loading branch information
atmnk committed Aug 9, 2024
1 parent 387c486 commit ea8416f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corr-lib/src/journey/step/websocket/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Executable for WebSocketServerStep {
let new_ct_out = context.clone();
let om_out=self.hook.clone();

let connect = async move||{
let connect = async move|listner:TcpListener,om_out:WebSocketServerHook,new_ct_out:Context|{
while let Ok((stream,_)) = listner.accept().await{
let om=om_out.clone();
let new_ct = new_ct_out.clone();
Expand All @@ -109,7 +109,7 @@ impl Executable for WebSocketServerStep {
};
Ok(true)
};
let handle = tokio::spawn(connect());
let handle = tokio::spawn(connect(listner,om_out,new_ct_out));
Ok(vec![handle])
}

Expand Down

0 comments on commit ea8416f

Please sign in to comment.