Skip to content

Commit

Permalink
Redundant handler example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Mar 4, 2015
1 parent 444df0e commit fdb415e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ match session.begin_transaction() {
### Handling RECEIPT frames
If you include a ReceiptHandler in your message, the client will request that the server send a receipt when it has successfully processed the frame.
```rust
let handler = |frame: &Frame| debug!("Received receipt for 'Hypoteneuse'", frame);
session.message(destination, "text/plain", "Hypoteneuse".as_bytes())
.with(ReceiptHandler::new(|frame: &Frame| println!("Got a receipt for 'Hypoteneuse'.")))
.send();
Expand Down

0 comments on commit fdb415e

Please sign in to comment.