Skip to content

Commit

Permalink
Update examples/ping-pong-encrypted/src/server.rs
Browse files Browse the repository at this point in the history
Co-authored-by: bit-aloo <[email protected]>
  • Loading branch information
plebhash and Shourya742 committed Jun 29, 2024
1 parent fd7d193 commit b20d64c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/ping-pong-encrypted/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ async fn handle_connection(
"SERVER: Sending encrypted Pong to client with nonce: {}",
pong.get_nonce()
);
match sender.send(pong_frame.into()).await {
Ok(_) => {}
Err(_) => return Err(Error::Sender),
}
sender.send(pong_frame.into()).await.map_err(|_| Error::Sender)?;

Ok(())
}

0 comments on commit b20d64c

Please sign in to comment.