Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Aug 15, 2023
1 parent 3bd9c9d commit 4fb3ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/g3-types/src/net/rate_limit/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct UdpSockSpeedLimitConfig {

impl UdpSockSpeedLimitConfig {
pub fn validate(&self) -> anyhow::Result<()> {
if self.shift_millis > 0 && self.shift_millis > RATE_LIMIT_SHIFT_MILLIS_MAX {
if self.shift_millis > RATE_LIMIT_SHIFT_MILLIS_MAX {
return Err(anyhow!(
"the shift value should be less than {RATE_LIMIT_SHIFT_MILLIS_MAX}",
));
Expand Down

0 comments on commit 4fb3ecd

Please sign in to comment.