fix: bump timeout of reading messages down to 2 seconds
This commit is contained in:
parent
4c450bd8b9
commit
c6091c039b
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ pub async fn start_sending(socket: &mut WebSocketStream<MaybeTlsStream<TcpStream
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read incoming messages
|
// Read incoming messages
|
||||||
match timeout(Duration::from_secs(10), socket.next()).await {
|
match timeout(Duration::from_secs(2), socket.next()).await {
|
||||||
Ok(Some(msg)) => match msg {
|
Ok(Some(msg)) => match msg {
|
||||||
Ok(Message::Pong(_)) => {
|
Ok(Message::Pong(_)) => {
|
||||||
println!("Received pong");
|
println!("Received pong");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue