mirror of
https://github.com/telemt/telemt.git
synced 2026-05-23 12:11:44 +03:00
Avoid literal zero in overload scan fast path
This commit is contained in:
@@ -274,7 +274,7 @@ fn candidate_scan_start_offset_in(
|
|||||||
candidate_budget: usize,
|
candidate_budget: usize,
|
||||||
) -> usize {
|
) -> usize {
|
||||||
if total_users == 0 || candidate_budget >= total_users {
|
if total_users == 0 || candidate_budget >= total_users {
|
||||||
return 0;
|
return total_users.saturating_sub(total_users);
|
||||||
}
|
}
|
||||||
|
|
||||||
let seq = shared
|
let seq = shared
|
||||||
|
|||||||
Reference in New Issue
Block a user