Chore: Register a feature flag for "newDBLibrary" (#57468)

This commit is contained in:
Ryan McKinley
2022-10-25 18:20:41 -07:00
committed by GitHub
parent 860380d893
commit a3acfb1a48
9 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func ProvideService(db db.DB, cfg *setting.Cfg, features *featuremgmt.FeatureMan
cfg: cfg,
features: features,
}
if cfg.IsFeatureToggleEnabled("newDBLibrary") {
if features.IsEnabled(featuremgmt.FlagNewDBLibrary) {
service.store = &sqlxStore{
sess: db.GetSqlxSession(),
}