Skip to content

Commit

Permalink
Update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulksnv committed Sep 14, 2023
1 parent dbbeee7 commit 2fcbba7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion substrate/client/network/sync/src/block_request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ impl FullBlockDownloader {

#[async_trait::async_trait]
impl<B: BlockT> BlockDownloader<B> for FullBlockDownloader {
async fn download_block(
async fn download_blocks(
&self,
who: PeerId,
request: BlockRequest<B>,
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/network/sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ where
(
who,
PeerRequest::Block(request.clone()),
downloader.download_block(who, request).await,
downloader.download_blocks(who, request).await,
)
}),
);
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/network/sync/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ mockall::mock! {

#[async_trait::async_trait]
impl<Block: BlockT> BlockDownloaderT<Block> for BlockDownloader<Block> {
async fn download_block(
async fn download_blocks(
&self,
who: PeerId,
request: BlockRequest<Block>,
Expand Down

0 comments on commit 2fcbba7

Please sign in to comment.