Reduce leader_id visiblity

This commit is contained in:
Michael Vines 2019-03-08 09:46:42 -08:00
parent d5d853838c
commit e04148ff44
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ impl ClusterInfo {
pub fn my_data(&self) -> NodeInfo {
self.lookup(self.id()).cloned().unwrap()
}
pub fn leader_id(&self) -> Pubkey {
fn leader_id(&self) -> Pubkey {
let entry = CrdsValueLabel::LeaderId(self.id());
self.gossip
.crds