diff --git a/rocketmq-broker/src/schedule/schedule_message_service.rs b/rocketmq-broker/src/schedule/schedule_message_service.rs index 741974830..fb2ad1bca 100644 --- a/rocketmq-broker/src/schedule/schedule_message_service.rs +++ b/rocketmq-broker/src/schedule/schedule_message_service.rs @@ -844,12 +844,12 @@ impl DeliverDelayedMessageTimerTask { /// Process for handling the result of putting a message pub struct PutResultProcess { - topic: String, + topic: CheetahString, offset: i64, physic_offset: i64, physic_size: i32, delay_level: i32, - msg_id: String, + msg_id: CheetahString, auto_resend: bool, future: Option>, result_sender: Option>, @@ -864,12 +864,12 @@ impl PutResultProcess { pub fn new(broker_controller: ArcMut>) -> Self { let (tx, rx) = oneshot::channel(); Self { - topic: String::new(), + topic: CheetahString::empty(), offset: 0, physic_offset: 0, physic_size: 0, delay_level: 0, - msg_id: String::new(), + msg_id: CheetahString::empty(), auto_resend: false, future: Some(rx), result_sender: Some(tx), @@ -880,7 +880,7 @@ impl PutResultProcess { } /// Set the topic for this process - pub fn set_topic(mut self, topic: impl Into) -> Self { + pub fn set_topic(mut self, topic: impl Into) -> Self { self.topic = topic.into(); self } @@ -910,7 +910,7 @@ impl PutResultProcess { } /// Set the message ID for this process - pub fn set_msg_id(mut self, msg_id: impl Into) -> Self { + pub fn set_msg_id(mut self, msg_id: impl Into) -> Self { self.msg_id = msg_id.into(); self }