|
|
@ -215,7 +215,6 @@ func (env *Env) startBooking(job *Booking, username string, password string, cre |
|
|
|
|
|
|
|
threadCount := 10 |
|
|
|
for i := 0; i < threadCount; i++ { |
|
|
|
time.Sleep(time.Millisecond * 100) |
|
|
|
go func() { |
|
|
|
defer func() { |
|
|
|
if r := recover(); r != nil { |
|
|
@ -243,6 +242,7 @@ func (env *Env) startBooking(job *Booking, username string, password string, cre |
|
|
|
cancelGetBookingSlot() |
|
|
|
pageChan <- currPage |
|
|
|
}() |
|
|
|
time.Sleep(time.Millisecond * 1100) |
|
|
|
} |
|
|
|
|
|
|
|
// Wait for either page received or timeout
|
|
|
|