Chore(booking-job): Longer interval between thread load
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user