浏览代码

Fix slice access

Signed-off-by: Mathieu Champlon <[email protected]>
Mathieu Champlon 4 年之前
父节点
当前提交
2d0d3881ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/compose/convergence.go

+ 1 - 1
pkg/compose/convergence.go

@@ -230,7 +230,7 @@ func (c *convergence) ensureService(ctx context.Context, project *types.Project,
 		i := i
 		eg.Go(func() error {
 			container, err := c.service.createContainer(ctx, project, service, name, number, false, true)
-			updated[actual+i-1] = container
+			updated[actual+i] = container
 			return err
 		})
 		continue