Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
Casey Lee committed 2020-02-20 21:05:36 -05:00
1 parent ac8258db4b
commit 835b36cb63
8 files changed
+50 -20

No files matched your search

+7 -1
View File
@@ -87,7 +87,13 @@ func NewParallelExecutor(executors ...Executor) Executor {
errChan := make(chan error)
for _, executor := range executors {
go executor.ChannelError(errChan)(ctx)
e := executor
go func() {
err := e.ChannelError(errChan)(ctx)
if err != nil {
log.Fatal(err)
}
}()
}
for i := 0; i < len(executors); i++ {