Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Apr 24, 2024
1 parent b1fa990 commit 8c0c2e8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tokio/src/time/sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,16 @@ impl Sleep {

fn reset_inner(mut self: Pin<&mut Self>, deadline: Instant) {
self.as_mut().lazy_init_timer_entry(deadline);
self.as_mut().project().entry.as_pin_mut().unwrap().reset(deadline, true);

self.as_mut()
.project()
.entry
.as_pin_mut()
.unwrap()
.reset(deadline, true);

#[cfg(all(tokio_unstable, feature = "tracing"))]
{
let me = self.as_mut();
let me = self.as_mut().project();
let _resource_enter = me.inner.ctx.resource_span.enter();
me.inner.ctx.async_op_span =
tracing::trace_span!("runtime.resource.async_op", source = "Sleep::reset");
Expand Down

0 comments on commit 8c0c2e8

Please sign in to comment.