add sets up

This commit is contained in:
mr
2025-06-20 08:34:33 +02:00
parent d3cfe019e3
commit 8d5ba6a5e4
2 changed files with 3 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ func (ws *WorkflowSchedule) GetBuyAndBook(wfID string, request *tools.APIRequest
var m sync.Mutex
for _, b := range bookings {
go getBooking(b, request, wf, execs, bookings, errCh, &m)
go getBooking(b, request, errCh, &m)
}
for i := 0; i < len(bookings); i++ {
@@ -104,7 +104,7 @@ func (ws *WorkflowSchedule) GetBuyAndBook(wfID string, request *tools.APIRequest
return true, wf, execs, purchased, bookings, nil
}
func getBooking(b *booking.Booking, request *tools.APIRequest, wf *workflow.Workflow, execs []*WorkflowExecution, bookings []*booking.Booking, errCh chan error, m *sync.Mutex) {
func getBooking(b *booking.Booking, request *tools.APIRequest, errCh chan error, m *sync.Mutex) {
m.Lock()
c, err := getCallerCopy(request, errCh)