Send an initial request for peers on launching crawler.

Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
Henry de Valence 2019-10-21 15:47:42 -07:00
parent b1832ce593
commit e0e17a4719
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,9 @@ where
peer_service: peer_set_service,
};
info!("Sending initial request for peers");
let _ = candidates.update().await;
// XXX instead of just responding to demand, we could respond to demand *or*
// to a interval timer (to continuously grow the peer set).
while let Some(()) = demand_signal.next().await {