Skip to content

Commit

Permalink
fix panic on scale down
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed Sep 3, 2021
1 parent ef461a3 commit bd22aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/convergence.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *convergence) ensureService(ctx context.Context, project *types.Project,
eg, _ := errgroup.WithContext(ctx)

for i, container := range containers {
if i > expected {
if i >= expected {
// Scale Down
container := container
eg.Go(func() error {
Expand Down

0 comments on commit bd22aed

Please sign in to comment.