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

@@ -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);