File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
sdk/eventhubs/azure_messaging_eventhubs/src/event_processor Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ impl LoadBalancer {
149149
150150 let minimum_required = partition_ids. len ( ) / grouped_by_owner. len ( ) ;
151151 let mut maximum_allowed = minimum_required;
152+ #[ allow( unknown_lints, clippy:: manual_is_multiple_of) ]
152153 let allow_extra_partition = partition_ids. len ( ) % grouped_by_owner. len ( ) > 0 ;
153154 if allow_extra_partition
154155 && grouped_by_owner[ & self . consumer_client_details . client_id ] . len ( ) >= minimum_required
@@ -416,6 +417,7 @@ pub(crate) mod tests {
416417
417418 let minimum = partition_count / number_of_consumers;
418419 let mut maximum = minimum;
420+ #[ allow( unknown_lints, clippy:: manual_is_multiple_of) ]
419421 if partition_count % number_of_consumers > 0 {
420422 info ! ( "Adding one to maximum because of remainder" ) ;
421423 maximum += 1 ;
You can’t perform that action at this time.
0 commit comments