chore: use setting.Dev in place of "development" string (#74391)

chore: use development variable instead of string
This commit is contained in:
Kristin Laemmert
2023-09-05 13:16:14 -04:00
committed by GitHub
parent cc1205d6ba
commit fa229661e8

View File

@@ -109,7 +109,7 @@ func (s *ModuleServer) Run() error {
s.log.Debug("Waiting on services...") s.log.Debug("Waiting on services...")
// Only allow individual dskit modules to run in dev mode. // Only allow individual dskit modules to run in dev mode.
if s.cfg.Env != "development" { if s.cfg.Env != setting.Dev {
if len(s.cfg.Target) > 1 || s.cfg.Target[0] != "all" { if len(s.cfg.Target) > 1 || s.cfg.Target[0] != "all" {
s.log.Error("dskit module targeting is only supported in dev mode. Falling back to 'all'") s.log.Error("dskit module targeting is only supported in dev mode. Falling back to 'all'")
s.cfg.Target = []string{"all"} s.cfg.Target = []string{"all"}