mirror of
https://github.com/grafana/grafana.git
synced 2025-09-18 06:22:51 +08:00
FeatureToggles: Add context and and an explicit global check (#78081)
This commit is contained in:
@ -228,7 +228,7 @@ func setupSimpleHTTPServer(features *featuremgmt.FeatureManager) *HTTPServer {
|
||||
features = featuremgmt.WithFeatures()
|
||||
}
|
||||
// nolint:staticcheck
|
||||
cfg := setting.NewCfgWithFeatures(features.IsEnabled)
|
||||
cfg := setting.NewCfgWithFeatures(features.IsEnabledGlobally)
|
||||
|
||||
return &HTTPServer{
|
||||
Cfg: cfg,
|
||||
|
Reference in New Issue
Block a user