We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 414d8e1 commit 1de698fCopy full SHA for 1de698f
lightning/src/ln/peer_handler.rs
@@ -399,11 +399,8 @@ impl Peer {
399
400
/// Returns whether this peer's buffer is full and we should drop gossip messages.
401
fn buffer_full_drop_gossip(&self) -> bool {
402
- if self.pending_outbound_buffer.len() > OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP
403
- || self.msgs_sent_since_pong > BUFFER_DRAIN_MSGS_PER_TICK * FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO {
404
- return false
405
- }
406
- true
+ self.pending_outbound_buffer.len() > OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP ||
+ self.msgs_sent_since_pong > BUFFER_DRAIN_MSGS_PER_TICK * FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO
407
}
408
409
0 commit comments