nit: add must_use to ConcurrentDownloader (#1010)

This commit is contained in:
Roman Krasiuk
2023-01-24 16:24:15 +02:00
committed by GitHub
parent e195e1d14c
commit 01cb6c07df

View File

@ -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