Skip to content

Commit 8f3775d

Browse files
committed
f fix comment/drop unused loop iter
1 parent 81baa8d commit 8f3775d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4702,8 +4702,8 @@ mod tests {
47024702
fd_a.hang_writes.store(true, Ordering::Relaxed);
47034703

47044704
// Now push an arbitrarily large number of messages and check that only
4705-
// `OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP` messages end up in the queue.
4706-
for i in 0..OUTBOUND_BUFFER_SIZE_LIMIT_DROP_GOSSIP / encoded_size {
4705+
// `OUTBOUND_BUFFER_SIZE_LIMIT_DROP_GOSSIP` message bytes end up in the queue.
4706+
for _ in 0..OUTBOUND_BUFFER_SIZE_LIMIT_DROP_GOSSIP / encoded_size {
47074707
cfgs[0].routing_handler.pending_events.lock().unwrap().push(msg_ev.clone());
47084708
peers[0].process_events();
47094709
}
@@ -4733,7 +4733,8 @@ mod tests {
47334733

47344734
// Finally, deliver all the messages and make sure we got the right count. Note that there
47354735
// was an extra message that had already moved from the broadcast queue to the encrypted
4736-
// message queue so we actually receive `OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP + 2` messages.
4736+
// message queue so we actually receive `OUTBOUND_BUFFER_SIZE_LIMIT_DROP_GOSSIP + 2`
4737+
// message bytes.
47374738
fd_a.hang_writes.store(false, Ordering::Relaxed);
47384739
cfgs[1].routing_handler.chan_anns_recvd.store(0, Ordering::Relaxed);
47394740
peers[0].write_buffer_space_avail(&mut fd_a).unwrap();

0 commit comments

Comments
 (0)