Skip to content

Commit

Permalink
fix: resolve relics from merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Aug 22, 2023
1 parent b5cb4d5 commit ddf10b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions nodebuilder/state/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,9 @@ func ConstructModule(tp node.Type, cfg *Config, coreCfg *core.Config) fx.Option
fxutil.ProvideIf(coreCfg.IsEndpointConfigured(), fx.Annotate(
coreAccessor,
fx.OnStart(func(ctx context.Context, breaker *modfraud.ServiceBreaker[*state.CoreAccessor]) error {
if breaker == nil {
return nil
}
return breaker.Start(ctx)
}),
fx.OnStop(func(ctx context.Context, breaker *modfraud.ServiceBreaker[*state.CoreAccessor]) error {
if breaker == nil {
return nil
}
return breaker.Stop(ctx)
}),
)),
Expand Down
6 changes: 0 additions & 6 deletions state/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import (
var meter = otel.Meter("state")

func WithMetrics(ca *CoreAccessor) {
if ca == nil {
// short-circuit if node is running without state access
log.Error("node is running without state access, cannot enable metrics for state module")
return
}

pfbCounter, _ := meter.Int64ObservableCounter(
"pfb_count",
metric.WithDescription("Total count of submitted PayForBlob transactions"),
Expand Down

0 comments on commit ddf10b4

Please sign in to comment.