Add small comment about ending the stream of blocks

This commit is contained in:
Roman Zeyde 2018-06-17 11:03:14 +03:00
parent f456ad3be7
commit f00c8cfe92
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -337,7 +337,7 @@ impl Index {
let hashes: Vec<Sha256dHash> = chunk.into_iter().map(|h| *h.hash()).collect(); let hashes: Vec<Sha256dHash> = chunk.into_iter().map(|h| *h.hash()).collect();
sender.send(daemon.getblocks(&hashes)).unwrap(); sender.send(daemon.getblocks(&hashes)).unwrap();
} }
sender.send(Ok(vec![])).unwrap(); sender.send(Ok(vec![])).unwrap(); // explicit end of stream
new_headers new_headers
}); });
loop { loop {