Skip to content

Commit

Permalink
Optimize the codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmqtt committed Oct 15, 2023
1 parent 4f2bd9f commit 1ae38c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmqtt/src/settings/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl ListenerInner {
}
#[inline]
fn mqueue_rate_limit_default() -> (NonZeroU32, Duration) {
(NonZeroU32::new(u32::max_value()).unwrap(), Duration::from_secs(1))
(NonZeroU32::new(u32::MAX).unwrap(), Duration::from_secs(1))
}
#[inline]
fn max_clientid_len_default() -> usize {
Expand Down

0 comments on commit 1ae38c5

Please sign in to comment.