Skip to content

Commit f0df23a

Browse files
committed
address CI failures
1 parent d17a825 commit f0df23a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

graph/src/components/metrics/block_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
util::cache_weight::CacheWeight,
1818
};
1919

20-
#[derive(Debug)]
20+
#[derive(Default, Debug)]
2121
pub struct BlockStateMetrics {
2222
pub gas_counter: HashMap<CounterKey, u64>,
2323
pub op_counter: HashMap<CounterKey, u64>,

graph/src/components/store/write.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::{
1111
derive::CacheWeight,
1212
prelude::DeploymentHash,
1313
util::cache_weight::CacheWeight,
14+
components::metrics::block_state::BlockStateMetrics,
1415
};
1516

1617
use super::{BlockNumber, EntityKey, EntityType, StoreError, StoreEvent, StoredDynamicDataSource};
@@ -707,6 +708,8 @@ impl Batch {
707708

708709
let mut mods = RowGroups::new();
709710

711+
let mut metrics = BlockStateMetrics::default();
712+
710713
for m in raw_mods {
711714
mods.group_entry(&m.key().entity_type).push(m, block)?;
712715
}

0 commit comments

Comments
 (0)