Skip to content

Commit

Permalink
[ISSUE #2321]🤡Remove useless code from PullMessageProcessor🧑‍💻 (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 18, 2025
1 parent 816cdfe commit d88e298
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions rocketmq-broker/src/processor/pull_message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ use crate::processor::pull_message_result_handler::PullMessageResultHandler;

pub struct PullMessageProcessor<MS> {
pull_message_result_handler: ArcMut<Box<dyn PullMessageResultHandler>>,
/*broker_config: Arc<BrokerConfig>,
subscription_group_manager: Arc<SubscriptionGroupManager<MS>>,
topic_config_manager: Arc<TopicConfigManager>,
topic_queue_mapping_manager: Arc<TopicQueueMappingManager>,
consumer_manager: Arc<ConsumerManager>,
consumer_filter_manager: Arc<ConsumerFilterManager>,
consumer_offset_manager: Arc<ConsumerOffsetManager>,
broadcast_offset_manager: Arc<BroadcastOffsetManager>,
message_store: ArcMut<MS>,
cold_data_cg_ctr_service: Arc<ColdDataCgCtrService>,
broker_outer_api: Arc<BrokerOuterAPI>,*/
// write message to consume client runtime
cold_data_cg_ctr_service: Arc<ColdDataCgCtrService>,
write_message_runtime: Arc<RocketMQRuntime>,
Expand All @@ -86,32 +75,11 @@ pub struct PullMessageProcessor<MS> {
impl<MS: MessageStore> PullMessageProcessor<MS> {
pub fn new(
pull_message_result_handler: ArcMut<Box<dyn PullMessageResultHandler>>,
/* broker_config: Arc<BrokerConfig>,
subscription_group_manager: Arc<SubscriptionGroupManager<MS>>,
topic_config_manager: Arc<TopicConfigManager>,
topic_queue_mapping_manager: Arc<TopicQueueMappingManager>,
consumer_manager: Arc<ConsumerManager>,
consumer_filter_manager: Arc<ConsumerFilterManager>,
consumer_offset_manager: Arc<ConsumerOffsetManager>,
broadcast_offset_manager: Arc<BroadcastOffsetManager>,
message_store: ArcMut<MS>,
broker_outer_api: Arc<BrokerOuterAPI>,*/
broker_runtime_inner: ArcMut<BrokerRuntimeInner<MS>>,
) -> Self {
let cpus = num_cpus::get();
Self {
pull_message_result_handler,
/* broker_config,
subscription_group_manager,
topic_config_manager,
topic_queue_mapping_manager,
consumer_manager,
consumer_filter_manager,
consumer_offset_manager,
broadcast_offset_manager,
message_store,
cold_data_cg_ctr_service: Arc::new(Default::default()),
broker_outer_api,*/
cold_data_cg_ctr_service: Arc::new(Default::default()),
write_message_runtime: Arc::new(RocketMQRuntime::new_multi(
cpus,
Expand Down

0 comments on commit d88e298

Please # to comment.