Skip to content

Commit

Permalink
send -> unbounded send in http-requests example
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 13, 2018
1 parent 768f74a commit 6985960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/http-requests/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl http_session::Server for HttpSession {
let (tx, stream) = ::futures::sync::mpsc::unbounded::<Vec<u8>>();
pry!(easy.write_function(move |data| {
// Error case should only happen if this request has been canceled.
let _ = tx.send(data.into());
let _ = tx.unbounded_send(data.into());
Ok(data.len())
}).map_err(from_curl_error));

Expand Down

0 comments on commit 6985960

Please sign in to comment.