Add scalable gossip library (#1546)

* Cluster Replicated Data Store

Separate the data storage and merge strategy from the network IO boundary.
Implement an eager push overlay for transporting recent messages.

Simulation shows fast convergence with 20k nodes.
This commit is contained in:
anatoly yakovenko
2018-11-15 13:23:26 -08:00
committed by GitHub
parent 4a3230904e
commit a41254e18c
31 changed files with 2821 additions and 1698 deletions

View File

@@ -89,9 +89,9 @@ impl Replicator {
let leader_info = network_addr.map(|i| NodeInfo::new_entry_point(&i));
let leader_pubkey;
if let Some(leader_info) = leader_info.as_ref() {
if let Some(leader_info) = leader_info {
leader_pubkey = leader_info.id;
cluster_info.write().unwrap().insert(leader_info);
cluster_info.write().unwrap().insert_info(leader_info);
} else {
panic!("No leader info!");
}