Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Nov 4, 2024
1 parent ddf87ef commit 8fb5f03
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/inflight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,8 @@ impl CounterInner {

fn available(&self, cx: &Context<'_>) -> bool {
self.task.register(cx.waker());
if (self.max_cap == 0 || self.cur_cap.get() < self.max_cap)
(self.max_cap == 0 || self.cur_cap.get() < self.max_cap)
&& (self.max_size == 0 || self.cur_size.get() <= self.max_size)
{
true
} else {
false
}
}
}

Expand Down

0 comments on commit 8fb5f03

Please sign in to comment.