Chore(booking-job): Longer interval between thread load
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-11-01 00:14:07 +08:00
parent 594391714f
commit 5d665a7bc8

View File

@@ -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