Skip to content

Commit

Permalink
Update examples/ping-pong/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 authored Jun 19, 2024
1 parent c5fd7b3 commit c5afda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ping-pong/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn start_client(address: &str) -> Result<(), Error> {
// now it's time to receive and verify the pong response

// initialize decoder
let mut decoder = StandardDecoder::<Ping>::new();
let mut decoder = StandardDecoder::<Pong>::new();

// right now, the decoder buffer can only read a frame header
// because decoder.missing_b is initialized with a header size
Expand Down

0 comments on commit c5afda3

Please sign in to comment.