timer: Replace Handle::deadline with Handle::timeout (#1074)

Deadline was deprecated a while ago and replaced with Timeout, but the
methods on Handle got missed.

Fixes #1071
This commit is contained in:
Steven Fackler
2019-04-30 10:29:54 -07:00
committed by Carl Lerche
parent ea282efb2e
commit 219f24cbf1
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ fn hammer_cancel() {
let deadline = cmp::min(deadline1, deadline2);
let delay = handle.delay(deadline1);
let join = handle.deadline(delay, deadline2);
let join = handle.timeout(delay, deadline2);
exec.push({
join.and_then(move |_| {