Skip to content

Commit 2dc626e

Browse files
committed
fix: rebase with ping extensions
1 parent d49de65 commit 2dc626e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

crates/subnetworks/history/src/downloader.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ use ssz_types::BitList;
3333
use tracing::{error, info, warn};
3434
use trin_metrics::downloader::DownloaderMetricsReporter;
3535

36-
use crate::{storage::HistoryStorage, validation::ChainHistoryValidator};
36+
use crate::{
37+
ping_extensions::HistoryPingExtensions, storage::HistoryStorage,
38+
validation::ChainHistoryValidator,
39+
};
3740

3841
/// The number of blocks to download in a single batch.
3942
const BATCH_SIZE: usize = 30;
@@ -62,15 +65,28 @@ impl Display for ContentType {
6265
#[derive(Clone)]
6366
pub struct Downloader {
6467
pub census: Option<Census>,
65-
pub overlay_arc:
66-
Arc<OverlayProtocol<HistoryContentKey, XorMetric, ChainHistoryValidator, HistoryStorage>>,
68+
pub overlay_arc: Arc<
69+
OverlayProtocol<
70+
HistoryContentKey,
71+
XorMetric,
72+
ChainHistoryValidator,
73+
HistoryStorage,
74+
HistoryPingExtensions,
75+
>,
76+
>,
6777
pub metrics: DownloaderMetricsReporter,
6878
}
6979

7080
impl Downloader {
7181
pub fn new(
7282
overlay_arc: Arc<
73-
OverlayProtocol<HistoryContentKey, XorMetric, ChainHistoryValidator, HistoryStorage>,
83+
OverlayProtocol<
84+
HistoryContentKey,
85+
XorMetric,
86+
ChainHistoryValidator,
87+
HistoryStorage,
88+
HistoryPingExtensions,
89+
>,
7490
>,
7591
) -> Self {
7692
// Build hhtp client bound to the current node web3rpc

0 commit comments

Comments
 (0)