Update masonry/src/contexts.rs

Co-authored-by: Olivier FAURE <couteaubleu@gmail.com>
This commit is contained in:
Richard Dodd 2025-02-13 15:39:57 +00:00 committed by GitHub
parent 9616d23454
commit f3b89394ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -716,8 +716,8 @@ impl_context_method!(
///
/// The return value is a token, which can be used to associate the
/// request with the event.
pub fn request_timer_rel(&mut self, deadline: Duration) -> TimerId {
let deadline = Instant::now() + deadline;
pub fn request_timer_relative(&mut self, offset: Duration) -> TimerId {
let deadline = Instant::now() + offset;
self.request_timer(deadline)
}