Skip to content

Commit

Permalink
fix(monitoring) rp & pubkey healthz only on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly authored and guybrush committed Jan 22, 2025
1 parent 6f8cd74 commit f1458a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/pkg/monitoring/services/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ func NewStatusReport(id constants.Event, timeout time.Duration, check_interval t
func GetRequiredEvents() []constants.Event {
// i would hope this simple of a function doesnt need caching
requiredEvents := constants.RequiredEvents
if utils.Config.DeploymentType == "production" {
requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...)
if utils.Config.DeploymentType != "production" {
return requiredEvents
}
requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...)
if utils.Config.RocketpoolExporter.Enabled {
requiredEvents = append(requiredEvents, constants.Event_ExporterLegacyRocketPool)
}
Expand Down

0 comments on commit f1458a5

Please sign in to comment.