mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
Add small comment about ending the stream of blocks
This commit is contained in:
parent
f456ad3be7
commit
f00c8cfe92
@ -337,7 +337,7 @@ impl Index {
|
||||
let hashes: Vec<Sha256dHash> = chunk.into_iter().map(|h| *h.hash()).collect();
|
||||
sender.send(daemon.getblocks(&hashes)).unwrap();
|
||||
}
|
||||
sender.send(Ok(vec![])).unwrap();
|
||||
sender.send(Ok(vec![])).unwrap(); // explicit end of stream
|
||||
new_headers
|
||||
});
|
||||
loop {
|
||||
|
Loading…
Reference in New Issue
Block a user