Skip to content

Commit

Permalink
fix possible multiple inputs error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislusf committed Aug 25, 2016
1 parent 83e45eb commit 672d457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/context_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ func (fc *FlowContext) runFlowContextInStandAloneMode() {
for _, input := range step.Inputs {
if _, ok := isDatasetStarted[input.Id]; !ok {
wg.Add(1)
go func(step *Step) {
go func(input *Dataset, step *Step) {
defer wg.Done()
input.RunDatasetInStandAloneMode()
}(step)
}(input, step)
isDatasetStarted[input.Id] = true
}
}
Expand Down

0 comments on commit 672d457

Please sign in to comment.