Fixes to replicator
Move functionality into more functions. Break down the current test and just test creation/joining the network.
This commit is contained in:
committed by
sakridge
parent
ec9e13d1f4
commit
64de639817
@@ -82,8 +82,10 @@ fn main() {
|
||||
|
||||
let leader_info = ContactInfo::new_gossip_entry_point(&network_addr);
|
||||
|
||||
let replicator =
|
||||
Replicator::new(ledger_path, node, &leader_info, &Arc::new(keypair), None).unwrap();
|
||||
let mut replicator =
|
||||
Replicator::new(ledger_path, node, leader_info, Arc::new(keypair), None).unwrap();
|
||||
|
||||
replicator.join();
|
||||
replicator.run();
|
||||
|
||||
replicator.close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user