From 4e31e622306cfbcfb5afbf1c932d4284639c369b Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Fri, 27 Sep 2024 09:32:13 -0500 Subject: [PATCH] removes early return if prune_messages are empty Even if there are no outgoing prune messages we still need to generate outgoing push messages for packets just received, so the code should not early return here: https://github.com/anza-xyz/agave/blob/d2cc71f0d/gossip/src/cluster_info.rs#L2400-L2402 --- gossip/src/cluster_info.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index f2e93765560ece..ab55f671479c07 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -2397,9 +2397,6 @@ impl ClusterInfo { .collect() }) }; - if prune_messages.is_empty() { - return; - } let mut packet_batch = PacketBatch::new_unpinned_with_recycler_data_and_dests( recycler, "handle_batch_push_messages",