mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-18 04:15:24 +00:00
Remove unused feature flags (#3676)
This commit removes some code that should have been removed in #3668. The FeatureFlags in silence.Options are no longer used but were still initialized. These had a no-op effect. Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
parent
30fa9cd44b
commit
f92a08d073
@ -251,7 +251,6 @@ func run() int {
|
||||
Retention: *retention,
|
||||
Logger: log.With(logger, "component", "silences"),
|
||||
Metrics: prometheus.DefaultRegisterer,
|
||||
FeatureFlags: ff,
|
||||
}
|
||||
|
||||
silences, err := silence.New(silenceOpts)
|
||||
|
@ -37,7 +37,6 @@ import (
|
||||
"github.com/prometheus/common/model"
|
||||
|
||||
"github.com/prometheus/alertmanager/cluster"
|
||||
"github.com/prometheus/alertmanager/featurecontrol"
|
||||
"github.com/prometheus/alertmanager/matchers/compat"
|
||||
"github.com/prometheus/alertmanager/pkg/labels"
|
||||
pb "github.com/prometheus/alertmanager/silence/silencepb"
|
||||
@ -319,7 +318,6 @@ type Options struct {
|
||||
// A logger used by background processing.
|
||||
Logger log.Logger
|
||||
Metrics prometheus.Registerer
|
||||
FeatureFlags featurecontrol.Flagger
|
||||
}
|
||||
|
||||
func (o *Options) validate() error {
|
||||
|
Loading…
Reference in New Issue
Block a user