Refactor replicators to not block on startup (#4932)

* Refactor replicators to not block on startup

* Ignore setup failure
This commit is contained in:
Sagar Dhawan
2019-07-08 10:17:25 -07:00
committed by GitHub
parent 2aac094f63
commit ef7022d638
3 changed files with 275 additions and 212 deletions

View File

@@ -92,7 +92,7 @@ fn main() {
);
let entrypoint_info = ContactInfo::new_gossip_entry_point(&entrypoint_addr);
let mut replicator = Replicator::new(
let replicator = Replicator::new(
ledger_path,
node,
entrypoint_info,
@@ -101,6 +101,5 @@ fn main() {
)
.unwrap();
replicator.run();
replicator.close();
replicator.join();
}