mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
nit: add must_use to ConcurrentDownloader (#1010)
This commit is contained in:
@ -29,6 +29,7 @@ const CONCURRENCY_PEER_MULTIPLIER: usize = 4;
|
||||
/// Downloads bodies in batches.
|
||||
///
|
||||
/// All blocks in a batch are fetched at the same time.
|
||||
#[must_use = "Stream does nothing unless polled"]
|
||||
#[derive(Debug)]
|
||||
pub struct ConcurrentDownloader<B, DB> {
|
||||
/// The bodies client
|
||||
|
||||
Reference in New Issue
Block a user