prevent leaking any blocked goroutines on error
This commit is contained in:
parent
932c9da473
commit
38eb894d73
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ func (a *App) printOpenSSHConfig(ctx context.Context, opts configOptions, execut
|
|||
err error
|
||||
}
|
||||
|
||||
sshUsers := make(chan sshResult)
|
||||
sshUsers := make(chan sshResult, len(csList))
|
||||
var wg sync.WaitGroup
|
||||
var status error
|
||||
for _, cs := range csList {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue