Skip to content

Commit 1fd4284

Browse files
committed
chore(pipeline): revert accidental removal of pipeline metric
1 parent 934a478 commit 1fd4284

File tree

1 file changed

+3
-2
lines changed
  • crates/sync/pipeline/src

1 file changed

+3
-2
lines changed

crates/sync/pipeline/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,11 @@ impl Pipeline {
520520
if let Some(tip) = self.tip {
521521
let to = current_chunk_tip.min(tip);
522522
let iteration_start = std::time::Instant::now();
523+
523524
let last_block_processed = self.execute(to).await?;
524-
let iteration_duration = iteration_start.elapsed().as_secs_f64();
525+
self.metrics.set_sync_position(last_block_processed);
525526

526-
// Record pipeline metrics for this iteration
527+
let iteration_duration = iteration_start.elapsed().as_secs_f64();
527528
self.metrics.record_iteration_duration(iteration_duration);
528529

529530
// Notify subscribers about the newly processed block

0 commit comments

Comments
 (0)