We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ed2d4 commit 6dc5c31Copy full SHA for 6dc5c31
chain/ethereum/src/block_stream.rs
@@ -252,14 +252,14 @@ where
252
// Only continue if the subgraph block ptr is behind the head block ptr.
253
// subgraph_ptr > head_ptr shouldn't happen, but if it does, it's safest to just stop.
254
if let Some(ptr) = subgraph_ptr {
255
- self.metrics
256
- .blocks_behind
257
- .set((head_ptr.number - ptr.number) as f64);
258
-
259
if ptr.number >= head_ptr.number {
260
return Box::new(future::ok(ReconciliationStep::Done))
261
as Box<dyn Future<Item = _, Error = _> + Send>;
262
}
+
+ self.metrics
+ .blocks_behind
+ .set((head_ptr.number - ptr.number) as f64);
263
264
265
// Subgraph ptr is behind head ptr.
0 commit comments