Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Jan 6, 2022
1 parent 0fdbacb commit 9bc41b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/runtime/queue.rs
Expand Up @@ -90,8 +90,8 @@ pub(super) fn local<T: 'static>() -> (Steal<T>, Local<T>) {
impl<T> Local<T> {
/// Returns true if the queue has entries that can be stealed.
pub(super) fn is_stealable(&self) -> bool {
self.inner.len() > 4
// !self.inner.is_empty()
// self.inner.len() > 4
!self.inner.is_empty()
}

/// Returns false if there are any entries in the queue
Expand Down

0 comments on commit 9bc41b1

Please sign in to comment.