Skip to content

Commit

Permalink
revert STATE_DEREGISTERED check to see what will happen
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Jun 13, 2024
1 parent 17fc129 commit 7043eb2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tokio/src/runtime/time/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@ impl StateCell {
// with relaxed ordering.
let mut cur_state = self.state.load(Ordering::Relaxed);
loop {
// This entry is in the `guarded_list`, so it can not be removed
// from the entry list with the same `level` and `slot`.
// Because its state is STATE_DEREGISTERED, it has been fired.
if cur_state == STATE_DEREGISTERED {
break Err(cur_state);
}

// improve the error message for things like
// https://github.com/tokio-rs/tokio/issues/3675
assert!(
Expand Down

0 comments on commit 7043eb2

Please sign in to comment.