Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lading_throttle/src/stable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ where
{
#[inline]
pub(crate) async fn wait(&mut self) -> Result<(), Error> {
// SAFETY: 1_u32 is a non-zero u32.
let one = unsafe { NonZeroU32::new_unchecked(1_u32) };
self.wait_for(one).await
self.wait_for(NonZeroU32::MIN).await
}

pub(crate) async fn wait_for(&mut self, request: NonZeroU32) -> Result<(), Error> {
Expand Down
Loading