Skip to content

[ISSUE #508] ✨Add fast broker server #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion rocketmq-broker/src/broker_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,16 @@
.start()
.expect("Message store start error");

//start broker server
//start nomarl broker server
let request_processor = self.init_processor();
let fast_request_processor = request_processor.clone();

Check warning on line 498 in rocketmq-broker/src/broker_runtime.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-broker/src/broker_runtime.rs#L498

Added line #L498 was not covered by tests
let server = RocketMQServer::new(self.server_config.clone());
tokio::spawn(async move { server.run(request_processor).await });
//start fast broker server
let mut fast_server_config = (*self.server_config).clone();
fast_server_config.listen_port = self.server_config.listen_port - 2;
let fast_server = RocketMQServer::new(Arc::new(fast_server_config));
tokio::spawn(async move { fast_server.run(fast_request_processor).await });

Check warning on line 505 in rocketmq-broker/src/broker_runtime.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-broker/src/broker_runtime.rs#L502-L505

Added lines #L502 - L505 were not covered by tests
}

fn update_namesrv_addr(&mut self) {
Expand Down
Loading