correct the error channel
This commit is contained in:
parent
7223b79fe8
commit
527e622774
@ -91,8 +91,8 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest)
|
||||
go getBooking(l, b, request, wf, execs, bookings, errCh)
|
||||
}
|
||||
|
||||
for err := range(errCh){
|
||||
if err != nil {
|
||||
for i := 0; i < len(bookings); i++ {
|
||||
if err := <-errCh; err != nil {
|
||||
return false, wf, execs, bookings, err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user