Skip to content

Commit c38e756

Browse files
committed
f fix compile, wording
1 parent 99a7f3d commit c38e756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref> PeerManager<D
667667
match self.do_read_event(peer_descriptor, data) {
668668
Ok(res) => Ok(res),
669669
Err(e) => {
670-
log_trace!(self, "Peer sent invalid data or we decided to disconnect due to a protocol error");
670+
log_trace!(self.logger, "Peer sent invalid data or we decided to disconnect due to a protocol error");
671671
self.disconnect_event_internal(peer_descriptor, e.no_connection_possible);
672672
Err(e)
673673
}
@@ -1346,8 +1346,8 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref> PeerManager<D
13461346
match peer.their_node_id {
13471347
Some(node_id) => {
13481348
log_trace!(self.logger,
1349-
"Handling peer disconnection of {}, with {}future connection to the peer possible.",
1350-
node_id, if no_connection_possible { "no " } else { "" });
1349+
"Handling disconnection of peer {}, with {}future connection to the peer possible.",
1350+
log_pubkey!(node_id), if no_connection_possible { "no " } else { "" });
13511351
peers.node_id_to_descriptor.remove(&node_id);
13521352
self.message_handler.chan_handler.peer_disconnected(&node_id, no_connection_possible);
13531353
},

0 commit comments

Comments
 (0)