diff --git a/substrate/client/network/sync/src/block_request_handler.rs b/substrate/client/network/sync/src/block_request_handler.rs index b8ea5eaf46b2..f0d5b6ef43f0 100644 --- a/substrate/client/network/sync/src/block_request_handler.rs +++ b/substrate/client/network/sync/src/block_request_handler.rs @@ -564,7 +564,7 @@ impl FullBlockDownloader { #[async_trait::async_trait] impl BlockDownloader for FullBlockDownloader { - async fn download_block( + async fn download_blocks( &self, who: PeerId, request: BlockRequest, diff --git a/substrate/client/network/sync/src/lib.rs b/substrate/client/network/sync/src/lib.rs index f329b117aaf0..a54c041ad66f 100644 --- a/substrate/client/network/sync/src/lib.rs +++ b/substrate/client/network/sync/src/lib.rs @@ -1192,7 +1192,7 @@ where ( who, PeerRequest::Block(request.clone()), - downloader.download_block(who, request).await, + downloader.download_blocks(who, request).await, ) }), ); diff --git a/substrate/client/network/sync/src/mock.rs b/substrate/client/network/sync/src/mock.rs index fa2fe178ef64..859f9fb9c54b 100644 --- a/substrate/client/network/sync/src/mock.rs +++ b/substrate/client/network/sync/src/mock.rs @@ -98,7 +98,7 @@ mockall::mock! { #[async_trait::async_trait] impl BlockDownloaderT for BlockDownloader { - async fn download_block( + async fn download_blocks( &self, who: PeerId, request: BlockRequest,