github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/execution/storehouse/register_store_metrics.go (about) 1 package storehouse 2 3 import ( 4 "github.com/onflow/flow-go/engine/execution" 5 "github.com/onflow/flow-go/module" 6 ) 7 8 type RegisterStoreMetrics struct { 9 collector module.ExecutionMetrics 10 } 11 12 var _ execution.RegisterStoreNotifier = (*RegisterStoreMetrics)(nil) 13 14 func NewRegisterStoreMetrics(collector module.ExecutionMetrics) *RegisterStoreMetrics { 15 return &RegisterStoreMetrics{ 16 collector: collector, 17 } 18 } 19 20 func (m *RegisterStoreMetrics) OnFinalizedAndExecutedHeightUpdated(height uint64) { 21 m.collector.ExecutionLastFinalizedExecutedBlockHeight(height) 22 }