fix(http,server): Update tests to use non-deprecated futures methods.

These seem mostly to be renames, with the exception of Unpark -> Notify.
This commit is contained in:
David Ross
2017-06-02 23:27:32 -07:00
parent edc1c0dd01
commit 70948a24b0
3 changed files with 16 additions and 15 deletions

View File

@@ -479,7 +479,7 @@ impl<S> Drop for NotifyService<S> {
info.active -= 1;
if info.active == 0 {
if let Some(task) = info.blocker.take() {
task.unpark();
task.notify();
}
}
}
@@ -494,7 +494,7 @@ impl Future for WaitUntilZero {
if info.active == 0 {
Ok(().into())
} else {
info.blocker = Some(task::park());
info.blocker = Some(task::current());
Ok(Async::NotReady)
}
}