fix: migration cli pass in feature toggle management into unified client (#107141)
This commit is contained in:
committed by
GitHub
parent
8f1f447763
commit
74ce09011e
@@ -219,9 +219,14 @@ func promptYesNo(prompt string) (bool, error) {
|
||||
}
|
||||
|
||||
func newUnifiedClient(cfg *setting.Cfg, sqlStore db.DB) (resource.ResourceClient, error) {
|
||||
featureManager, err := featuremgmt.ProvideManagerService(cfg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
featureToggles := featuremgmt.ProvideToggles(featureManager)
|
||||
return unified.ProvideUnifiedStorageClient(&unified.Options{
|
||||
Cfg: cfg,
|
||||
Features: featuremgmt.WithFeatures(), // none??
|
||||
Features: featureToggles,
|
||||
DB: sqlStore,
|
||||
Tracer: tracing.NewNoopTracerService(),
|
||||
Reg: prometheus.NewPedanticRegistry(),
|
||||
|
||||
Reference in New Issue
Block a user