Skip to content

Commit effe27b

Browse files
committed
wip
1 parent b6739b1 commit effe27b

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

crates/node/src/full/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Node {
121121

122122
// --- build pipeline
123123

124-
let (mut pipeline, pipeline_handle) = Pipeline::new(storage_provider.clone(), 50);
124+
let (mut pipeline, pipeline_handle) = Pipeline::new(storage_provider.clone(), 256);
125125
let block_downloader = BatchBlockDownloader::new_gateway(gateway_client.clone(), 20);
126126
pipeline.add_stage(Blocks::new(storage_provider.clone(), block_downloader));
127127
pipeline.add_stage(Classes::new(storage_provider.clone(), gateway_client.clone(), 20));

crates/sync/pipeline/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ where
404404

405405
let provider_mut = self.storage_provider.provider_mut();
406406
provider_mut.set_checkpoint(id, last_block_processed)?;
407-
provider_mut.commit();
407+
provider_mut.commit()?;
408408

409409
last_block_processed_list.push(last_block_processed);
410410
info!(target: "pipeline", checkpoint = %last_block_processed, "New checkpoint set.");

crates/sync/stage/src/downloader.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,7 @@ where
185185
}
186186

187187
async fn download_batch(&self, keys: &[D::Key]) -> Vec<DownloaderResult<D::Value, D::Error>> {
188-
join_all(keys.iter().map(|key| async move {
189-
let start = std::time::Instant::now();
190-
let result = self.downloader.download(key).await;
191-
let elapsed = start.elapsed();
192-
println!("elapsed_ms = {}", elapsed.as_millis());
193-
194-
result
195-
}))
196-
.await
188+
join_all(keys.iter().map(|key| self.downloader.download(key))).await
197189
}
198190

199191
async fn download_batch_with_retry(
@@ -234,7 +226,7 @@ where
234226
}
235227

236228
// if not failed keys, all requests succeeded
237-
if dbg!(failed_keys.is_empty()) {
229+
if failed_keys.is_empty() {
238230
break;
239231
}
240232

0 commit comments

Comments
 (0)