Skip to content

Commit

Permalink
remove test-only function from prod code (#4355)
Browse files Browse the repository at this point in the history
rename function that is for tests only
  • Loading branch information
alexpyattaev authored Jan 10, 2025
1 parent c853b2c commit 4893018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3035,7 +3035,7 @@ impl Node {
}
}

pub fn push_messages_to_peer(
pub fn push_messages_to_peer_for_tests(
messages: Vec<CrdsValue>,
self_id: Pubkey,
peer_gossip: SocketAddr,
Expand Down
2 changes: 1 addition & 1 deletion local-cluster/src/cluster_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ pub fn submit_vote_to_cluster_gossip(
None,
);

cluster_info::push_messages_to_peer(
cluster_info::push_messages_to_peer_for_tests(
vec![CrdsValue::new(
CrdsData::Vote(
0,
Expand Down

0 comments on commit 4893018

Please sign in to comment.