From 50b76bb41e7d01ea2bf954c560257c8f83dfaf9f Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Fri, 7 Jul 2023 11:09:09 +0200 Subject: [PATCH] Cleanup --- bundle/config/mutator/populate_current_user.go | 4 ---- bundle/config/mutator/process_environment_mode.go | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bundle/config/mutator/populate_current_user.go b/bundle/config/mutator/populate_current_user.go index c0bf541dc..34c6ff6e3 100644 --- a/bundle/config/mutator/populate_current_user.go +++ b/bundle/config/mutator/populate_current_user.go @@ -18,10 +18,6 @@ func (m *populateCurrentUser) Name() string { } func (m *populateCurrentUser) Apply(ctx context.Context, b *bundle.Bundle) error { - if b.Config.Workspace.CurrentUser != nil { - return nil - } - w := b.WorkspaceClient() me, err := w.CurrentUser.Me(ctx) if err != nil { diff --git a/bundle/config/mutator/process_environment_mode.go b/bundle/config/mutator/process_environment_mode.go index ad2d2d4c6..295afa8ab 100644 --- a/bundle/config/mutator/process_environment_mode.go +++ b/bundle/config/mutator/process_environment_mode.go @@ -11,7 +11,7 @@ import ( type processEnvironmentMode struct{} -const debugConcurrentRuns = 4 +const developmentConcurrentRuns = 4 func ProcessEnvironmentMode() bundle.Mutator { return &processEnvironmentMode{} @@ -34,7 +34,7 @@ func processDevelopmentMode(b *bundle.Bundle) error { } r.Jobs[i].Tags["dev"] = "" if r.Jobs[i].MaxConcurrentRuns == 0 { - r.Jobs[i].MaxConcurrentRuns = debugConcurrentRuns + r.Jobs[i].MaxConcurrentRuns = developmentConcurrentRuns } if r.Jobs[i].Schedule != nil { r.Jobs[i].Schedule.PauseStatus = "PAUSED"