Skip to content

Commit f1458a5

Browse files
invis-bitflyguybrush
authored andcommitted
fix(monitoring) rp & pubkey healthz only on prod
1 parent 6f8cd74 commit f1458a5

File tree

1 file changed

+3
-2
lines changed
  • backend/pkg/monitoring/services

1 file changed

+3
-2
lines changed

backend/pkg/monitoring/services/base.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ func NewStatusReport(id constants.Event, timeout time.Duration, check_interval t
113113
func GetRequiredEvents() []constants.Event {
114114
// i would hope this simple of a function doesnt need caching
115115
requiredEvents := constants.RequiredEvents
116-
if utils.Config.DeploymentType == "production" {
117-
requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...)
116+
if utils.Config.DeploymentType != "production" {
117+
return requiredEvents
118118
}
119+
requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...)
119120
if utils.Config.RocketpoolExporter.Enabled {
120121
requiredEvents = append(requiredEvents, constants.Event_ExporterLegacyRocketPool)
121122
}

0 commit comments

Comments
 (0)