fix deprecated UnboundedSender::send() to unbounded_send()

This commit is contained in:
Sean McArthur
2017-08-24 15:23:14 -07:00
parent f11a0f5f5b
commit dc44e742a0
2 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ categories = ["web-programming::http-client"]
[dependencies]
bytes = "0.4"
futures = "0.1.14"
futures = "0.1.15"
hyper = "0.11"
hyper-tls = "0.1.2"
libflate = "0.1.11"

View File

@@ -387,7 +387,11 @@ impl ClientHandle {
let (tx, rx) = oneshot::channel();
let (req, body) = request::async(req);
let url = req.url().clone();
self.inner.tx.as_ref().expect("core thread exited early").send((req, tx)).expect("core thread panicked");
self.inner.tx
.as_ref()
.expect("core thread exited early")
.unbounded_send((req, tx))
.expect("core thread panicked");
if let Some(body) = body {
try_!(body.send(), &url);