Skip to content

Commit 4893018

Browse files
authored
remove test-only function from prod code (solana-labs#4355)
rename function that is for tests only
1 parent c853b2c commit 4893018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gossip/src/cluster_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ impl Node {
30353035
}
30363036
}
30373037

3038-
pub fn push_messages_to_peer(
3038+
pub fn push_messages_to_peer_for_tests(
30393039
messages: Vec<CrdsValue>,
30403040
self_id: Pubkey,
30413041
peer_gossip: SocketAddr,

local-cluster/src/cluster_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ pub fn submit_vote_to_cluster_gossip(
680680
None,
681681
);
682682

683-
cluster_info::push_messages_to_peer(
683+
cluster_info::push_messages_to_peer_for_tests(
684684
vec![CrdsValue::new(
685685
CrdsData::Vote(
686686
0,

0 commit comments

Comments
 (0)