Skip to content

Commit

Permalink
Update examples/ping-pong-encrypted/src/client.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 b20d64c commit aa1ad0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/ping-pong-encrypted/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ pub async fn start_client(address: &str, k_pub: String) -> Result<(), Error> {
"CLIENT: Sending encrypted Ping to server with nonce: {}",
ping_nonce
);
match sender.send(ping_frame.into()).await {
Ok(_) => {}
Err(_) => return Err(Error::Sender),
}
sender.send(ping_frame.into()).await.map_err(|_| Error::Sender)?;

// ok, we have successfully sent the ping message
// now it's time to receive and verify the pong response
Expand Down

0 comments on commit aa1ad0c

Please sign in to comment.