Send an initial request for peers on launching crawler.
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
parent
b1832ce593
commit
e0e17a4719
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue