Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(proxy): remove seeds guard to enable reconnect (#1392)
Browse files Browse the repository at this point in the history
The double sanity check prevented the reconnect behaviour introduced in #1316.
  • Loading branch information
xla committed Nov 27, 2020
1 parent adb105e commit ea1202c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions proxy/coco/src/config.rs
Expand Up @@ -136,19 +136,11 @@ impl discovery::Discovery for StreamDiscovery {
let (mut sender, receiver) = mpsc::channel(1024);

tokio::spawn(async move {
let mut last_seeds: Vec<seed::Seed> = vec![];

while let Some(seeds) = self.seeds_receiver.recv().await {
if last_seeds == seeds {
continue;
}

for seed in &seeds {
let pair = (seed.peer_id, vec![seed.addr]);
sender.send(pair).await.ok();
}

last_seeds = seeds;
}
});

Expand Down

0 comments on commit ea1202c

Please sign in to comment.