Skip to content

Commit

Permalink
Update substrate/client/network/sync/src/block_relay_protocol.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Markin <[email protected]>
  • Loading branch information
rahulksnv and dmitry-markin committed Sep 14, 2023
1 parent 776faea commit dbbeee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/client/network/sync/src/block_relay_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ pub trait BlockServer<Block: BlockT>: Send {
/// that can be used to initiate concurrent downloads.
#[async_trait::async_trait]
pub trait BlockDownloader<Block: BlockT>: Send + Sync {
/// Performs the protocol specific sequence to fetch the block from the peer.
/// Performs the protocol specific sequence to fetch the blocks from the peer.
/// Output: if the download succeeds, the response is a `Vec<u8>` which is
/// in a format specific to the protocol implementation. The block data
/// can be extracted from this response using [`BlockDownloader::block_response_into_blocks`].
async fn download_block(
async fn download_blocks(
&self,
who: PeerId,
request: BlockRequest<Block>,
Expand Down

0 comments on commit dbbeee7

Please sign in to comment.