Skip to content

Commit 0c8f871

Browse files
committed
f clarify comment
1 parent e026b5a commit 0c8f871

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,9 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
15351535
let mut do_disconnect_peer = false;
15361536
if !peer.channel_encryptor.is_ready_for_encryption() || peer.their_node_id.is_none() {
15371537
// The peer needs to complete its handshake before we can exchange messages. We
1538-
// give peers one timer tick to complet handshake.
1538+
// give peers one timer tick to complete handshake, reusing
1539+
// `awaiting_pong_tick_intervals` to track number of timer ticks taken for
1540+
// handshake completion.
15391541
if peer.awaiting_pong_tick_intervals != 0 {
15401542
do_disconnect_peer = true;
15411543
} else {

0 commit comments

Comments
 (0)