@@ -844,12 +844,12 @@ impl<MS: MessageStore> DeliverDelayedMessageTimerTask<MS> {
844844
845845/// Process for handling the result of putting a message
846846pub struct PutResultProcess < MS > {
847- topic : String ,
847+ topic : CheetahString ,
848848 offset : i64 ,
849849 physic_offset : i64 ,
850850 physic_size : i32 ,
851851 delay_level : i32 ,
852- msg_id : String ,
852+ msg_id : CheetahString ,
853853 auto_resend : bool ,
854854 future : Option < oneshot:: Receiver < PutMessageResult > > ,
855855 result_sender : Option < oneshot:: Sender < PutMessageResult > > ,
@@ -864,12 +864,12 @@ impl<MS: MessageStore> PutResultProcess<MS> {
864864 pub fn new ( broker_controller : ArcMut < BrokerRuntimeInner < MS > > ) -> Self {
865865 let ( tx, rx) = oneshot:: channel ( ) ;
866866 Self {
867- topic : String :: new ( ) ,
867+ topic : CheetahString :: empty ( ) ,
868868 offset : 0 ,
869869 physic_offset : 0 ,
870870 physic_size : 0 ,
871871 delay_level : 0 ,
872- msg_id : String :: new ( ) ,
872+ msg_id : CheetahString :: empty ( ) ,
873873 auto_resend : false ,
874874 future : Some ( rx) ,
875875 result_sender : Some ( tx) ,
@@ -880,7 +880,7 @@ impl<MS: MessageStore> PutResultProcess<MS> {
880880 }
881881
882882 /// Set the topic for this process
883- pub fn set_topic ( mut self , topic : impl Into < String > ) -> Self {
883+ pub fn set_topic ( mut self , topic : impl Into < CheetahString > ) -> Self {
884884 self . topic = topic. into ( ) ;
885885 self
886886 }
@@ -910,7 +910,7 @@ impl<MS: MessageStore> PutResultProcess<MS> {
910910 }
911911
912912 /// Set the message ID for this process
913- pub fn set_msg_id ( mut self , msg_id : impl Into < String > ) -> Self {
913+ pub fn set_msg_id ( mut self , msg_id : impl Into < CheetahString > ) -> Self {
914914 self . msg_id = msg_id. into ( ) ;
915915 self
916916 }
0 commit comments