Add a comment about the short looo

This commit is contained in:
Deirdre Connolly 2020-09-21 11:56:03 -04:00 committed by Henry de Valence
parent 9e2ff23d54
commit 33afeb37cb
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ where
// existing peers, but we don't make too many because update may be
// called while the peer set is already loaded.
let mut responses = FuturesUnordered::new();
// Yes this loops only once (for now), until we add fanout back.
for _ in 0..1usize {
self.peer_service.ready_and().await?;
responses.push(self.peer_service.call(Request::Peers));