Skip to content

Commit

Permalink
[ISSUE #1996]🍻Implement PopMessageProcessor#reset_pop_offset method l…
Browse files Browse the repository at this point in the history
…ogic🚀
  • Loading branch information
mxsm committed Jan 1, 2025
1 parent c618f82 commit 9fd072c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketmq-broker/src/processor/pop_message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ where
let reset_offset = self
.consumer_offset_manager
.query_then_erase_reset_offset(group, topic, queue_id);
if reset_offset.is_some() {
if let Some(value) = &reset_offset {
self.consumer_order_info_manager
.clear_block(topic, group, queue_id);
self.pop_buffer_merge_service
Expand All @@ -1060,7 +1060,7 @@ where
group,
topic,
queue_id,
*reset_offset.as_ref().unwrap(),
*value,
)
}
reset_offset

Check warning on line 1066 in rocketmq-broker/src/processor/pop_message_processor.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-broker/src/processor/pop_message_processor.rs#L1036-L1066

Added lines #L1036 - L1066 were not covered by tests
Expand Down

0 comments on commit 9fd072c

Please # to comment.