Crawl for more peers when we exhaust candidates.

This commit is contained in:
Henry de Valence 2020-02-14 22:34:59 -08:00 committed by Deirdre Connolly
parent afa2c2347f
commit 43b2d35dda
1 changed files with 4 additions and 1 deletions

View File

@ -262,7 +262,10 @@ where
.boxed(),
);
} else {
warn!("demand for peers but no available candidates");
debug!("demand for peers but no available candidates");
candidates.update().await?;
// Try to connect to a new peer.
let _ = demand_tx.try_send(());
}
}
// did a drill sergeant write this? no there's just no Either3