mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Avoid using for variable in go func, as this creates race conditions
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
76f10e1e83
commit
998dbf79f9
@ -147,6 +147,7 @@ func getContainerProgressName(container moby.Container) string {
|
||||
func (s *composeService) waitDependencies(ctx context.Context, project *types.Project, service types.ServiceConfig) error {
|
||||
eg, _ := errgroup.WithContext(ctx)
|
||||
for dep, config := range service.DependsOn {
|
||||
dep, config := dep, config
|
||||
eg.Go(func() error {
|
||||
ticker := time.NewTicker(500 * time.Millisecond)
|
||||
defer ticker.Stop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user