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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ func (s *ModuleServer) Run() error {
s.log.Debug("Waiting on services...")
// 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" {
s.log.Error("dskit module targeting is only supported in dev mode. Falling back to 'all'")
s.cfg.Target = []string{"all"}