Leaders should not broadcast to replicators (#5917)
This commit is contained in:
parent
bd19fe5909
commit
c44e7ce184
|
@ -417,7 +417,7 @@ impl ClusterInfo {
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// all peers that have a valid tvu port.
|
/// all validators that have a valid tvu port.
|
||||||
pub fn tvu_peers(&self) -> Vec<ContactInfo> {
|
pub fn tvu_peers(&self) -> Vec<ContactInfo> {
|
||||||
let me = self.my_data().id;
|
let me = self.my_data().id;
|
||||||
self.gossip
|
self.gossip
|
||||||
|
@ -426,6 +426,7 @@ impl ClusterInfo {
|
||||||
.values()
|
.values()
|
||||||
.filter_map(|x| x.value.contact_info())
|
.filter_map(|x| x.value.contact_info())
|
||||||
.filter(|x| ContactInfo::is_valid_address(&x.tvu))
|
.filter(|x| ContactInfo::is_valid_address(&x.tvu))
|
||||||
|
.filter(|x| !ClusterInfo::is_replicator(x))
|
||||||
.filter(|x| x.id != me)
|
.filter(|x| x.id != me)
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect()
|
.collect()
|
||||||
|
|
Loading…
Reference in New Issue