Skip to content

Commit 3aeb10a

Browse files
Update substrate/client/network/sync/src/block_relay_protocol.rs
Co-authored-by: Dmitry Markin <dmitry@markin.tech>
1 parent 9f94b7c commit 3aeb10a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

substrate/client/network/sync/src/block_relay_protocol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ pub trait BlockServer<Block: BlockT>: Send {
3535
/// that can be used to initiate concurrent downloads.
3636
#[async_trait::async_trait]
3737
pub trait BlockDownloader<Block: BlockT>: Send + Sync {
38-
/// Performs the protocol specific sequence to fetch the block from the peer.
38+
/// Performs the protocol specific sequence to fetch the blocks from the peer.
3939
/// Output: if the download succeeds, the response is a `Vec<u8>` which is
4040
/// in a format specific to the protocol implementation. The block data
4141
/// can be extracted from this response using [`BlockDownloader::block_response_into_blocks`].
42-
async fn download_block(
42+
async fn download_blocks(
4343
&self,
4444
who: PeerId,
4545
request: BlockRequest<Block>,

0 commit comments

Comments
 (0)