Skip to content

Commit

Permalink
Update rocketmq-client/src/consumer/consumer_impl/re_balance/rebalanc…
Browse files Browse the repository at this point in the history
…e_impl.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
rocketmq-rust-bot and coderabbitai[bot] authored Dec 14, 2024
1 parent f96e676 commit 29b6f65
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ where
is_order: bool,
) -> bool {
let strategy_name = match self.allocate_message_queue_strategy.as_ref() {

Check warning on line 275 in rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs#L275

Added line #L275 was not covered by tests
None => return false,
None => {
error!("get_rebalance_result_from_broker error: allocate_message_queue_strategy is None.");
return false;

Check warning on line 278 in rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs#L277-L278

Added lines #L277 - L278 were not covered by tests
}
Some(strategy) => strategy.get_name(),

Check warning on line 280 in rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-client/src/consumer/consumer_impl/re_balance/rebalance_impl.rs#L280

Added line #L280 was not covered by tests
};
let message_queue_assignments = self
Expand Down

0 comments on commit 29b6f65

Please # to comment.