Skip to content

Commit

Permalink
removes early return if prune_messages are empty
Browse files Browse the repository at this point in the history
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
  • Loading branch information
behzadnouri committed Sep 27, 2024
1 parent d2cc71f commit 4e31e62
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4e31e62

Please sign in to comment.