@@ -105,7 +105,7 @@ impl BrokerOuterAPI {
105105 let request_header =
106106 RegisterTopicRequestHeader :: new ( topic_config. topic_name . as_ref ( ) . cloned ( ) . unwrap ( ) ) ;
107107 let queue_data = QueueData :: new (
108- broker_name. clone ( ) ,
108+ broker_name,
109109 topic_config. read_queue_nums ,
110110 topic_config. write_queue_nums ,
111111 topic_config. perm ,
@@ -196,7 +196,7 @@ impl BrokerOuterAPI {
196196 if let Some ( outer_api) = outer_api. upgrade ( ) {
197197 outer_api
198198 . register_broker (
199- addr,
199+ & addr,
200200 oneway,
201201 timeout_mills,
202202 cloned_header,
@@ -233,7 +233,7 @@ impl BrokerOuterAPI {
233233
234234 async fn register_broker (
235235 & self ,
236- namesrv_addr : CheetahString ,
236+ namesrv_addr : & CheetahString ,
237237 oneway : bool ,
238238 timeout_mills : u64 ,
239239 request_header : RegisterBrokerRequestHeader ,
@@ -258,7 +258,7 @@ impl BrokerOuterAPI {
258258 }
259259 match self
260260 . remoting_client
261- . invoke_async ( Some ( namesrv_addr. clone ( ) ) , request, timeout_mills)
261+ . invoke_async ( Some ( namesrv_addr) , request, timeout_mills)
262262 . await
263263 {
264264 Ok ( response) => match From :: from ( response. code ( ) ) {
@@ -318,7 +318,7 @@ impl BrokerOuterAPI {
318318 let client = self . remoting_client . clone ( ) ;
319319 let join_handle = tokio:: spawn ( async move {
320320 client
321- . invoke_async ( Some ( addr) , cloned_request, timeout_mills)
321+ . invoke_async ( Some ( & addr) , cloned_request, timeout_mills)
322322 . await
323323 } ) ;
324324 handle_vec. push ( join_handle) ;
@@ -338,7 +338,7 @@ impl BrokerOuterAPI {
338338
339339 pub async fn lock_batch_mq_async (
340340 & self ,
341- addr : CheetahString ,
341+ addr : & CheetahString ,
342342 request_body : bytes:: Bytes ,
343343 timeout_millis : u64 ,
344344 ) -> Result < HashSet < MessageQueue > > {
@@ -375,7 +375,7 @@ impl BrokerOuterAPI {
375375
376376 pub async fn unlock_batch_mq_async (
377377 & self ,
378- addr : CheetahString ,
378+ addr : & CheetahString ,
379379 request_body : bytes:: Bytes ,
380380 timeout_millis : u64 ,
381381 ) -> Result < ( ) > {
0 commit comments