@@ -2186,8 +2186,7 @@ where
21862186 if peer_lock. message_batch . is_some ( ) {
21872187 let error = format ! (
21882188 "Peer {} sent start_batch for channel {} before previous batch completed" ,
2189- their_node_id,
2190- & msg. channel_id
2189+ their_node_id, & msg. channel_id
21912190 ) ;
21922191 log_debug ! ( logger, "{}" , error) ;
21932192 return Err ( LightningError {
@@ -2203,8 +2202,7 @@ where
22032202 if batch_size <= 1 {
22042203 let error = format ! (
22052204 "Peer {} sent start_batch for channel {} not strictly greater than 1" ,
2206- their_node_id,
2207- & msg. channel_id
2205+ their_node_id, & msg. channel_id
22082206 ) ;
22092207 log_debug ! ( logger, "{}" , error) ;
22102208 return Err ( LightningError {
@@ -2221,8 +2219,7 @@ where
22212219 if batch_size > COMMITMENT_SIGNED_BATCH_LIMIT {
22222220 let error = format ! (
22232221 "Peer {} sent start_batch for channel {} exceeding the limit" ,
2224- their_node_id,
2225- & msg. channel_id
2222+ their_node_id, & msg. channel_id
22262223 ) ;
22272224 log_debug ! ( logger, "{}" , error) ;
22282225 return Err ( LightningError {
@@ -2242,8 +2239,7 @@ where
22422239 _ => {
22432240 let error = format ! (
22442241 "Peer {} sent start_batch for channel {} without a known message type" ,
2245- their_node_id,
2246- & msg. channel_id
2242+ their_node_id, & msg. channel_id
22472243 ) ;
22482244 log_debug ! ( logger, "{}" , error) ;
22492245 return Err ( LightningError {
@@ -2360,19 +2356,9 @@ where
23602356 MessageHandlingError ,
23612357 > {
23622358 if is_gossip_msg ( message. type_id ( ) ) {
2363- log_gossip ! (
2364- logger,
2365- "Received message {:?} from {}" ,
2366- message,
2367- their_node_id,
2368- ) ;
2359+ log_gossip ! ( logger, "Received message {:?} from {}" , message, their_node_id) ;
23692360 } else {
2370- log_trace ! (
2371- logger,
2372- "Received message {:?} from {}" ,
2373- message,
2374- their_node_id,
2375- ) ;
2361+ log_trace ! ( logger, "Received message {:?} from {}" , message, their_node_id) ;
23762362 }
23772363
23782364 let mut should_forward = None ;
0 commit comments