mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-05 12:34:57 -05:00
fix: set stage progress metric to absolute value (#593)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use metrics::counter;
|
||||
use metrics::absolute_counter;
|
||||
use reth_db::{
|
||||
tables::SyncStage,
|
||||
transaction::{DbTx, DbTxMut},
|
||||
@@ -31,7 +31,7 @@ impl StageId {
|
||||
tx: &impl DbTxMut<'db>,
|
||||
block: BlockNumber,
|
||||
) -> Result<(), DbError> {
|
||||
counter!("stage.progress", block, "stage" => self.0);
|
||||
absolute_counter!("stage.progress", block, "stage" => self.0);
|
||||
tx.put::<SyncStage>(self.0.as_bytes().to_vec(), block)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user