From 56d99c02bd809dfa96d6c1f102e046533c5c631f Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Mon, 22 Feb 2021 20:59:23 +0100 Subject: [PATCH] Updated to new interface --- src/tq.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tq.rs b/src/tq.rs index a637007d28..063bbd8e4a 100644 --- a/src/tq.rs +++ b/src/tq.rs @@ -90,9 +90,8 @@ where Some((nr.task, nr.index)) } else { - // TODO: Fix this hack... - // Extract the compare time. - mono.set_compare(*instant.duration_since_epoch().integer()); + // Set compare + mono.set_compare(&instant); // Double check that the instant we set is really in the future, else // dequeue. If the monotonic is fast enough it can happen that from the