diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index d3f9a947eb..1d4a9df6e5 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -164,10 +164,10 @@ enum Protocol { impl ClusterInfo { /// Without a valid keypair gossip will not function. Only useful for tests. pub fn new_with_invalid_keypair(node_info: NodeInfo) -> Self { - ClusterInfo::new(node_info, Arc::new(Keypair::new())) + Self::new(node_info, Arc::new(Keypair::new())) } pub fn new(node_info: NodeInfo, keypair: Arc) -> Self { - let mut me = ClusterInfo { + let mut me = Self { gossip: CrdsGossip::default(), keypair, };