Increase sleep duration in box score scraping

This commit is contained in:
2026-06-24 17:28:07 -05:00
committed by GitHub
parent 969950271d
commit ce9ace9e5a
+2 -2
View File
@@ -136,7 +136,7 @@ func scrapeAndParseWorker(id int, jobs <-chan models.Game, results chan<- Scrape
fullURL := boxScoreURLBase + game.BoxScoreURL
utils.SleepWithJitter(baseDelay)
time.Sleep(1500 * time.Millisecond)
time.Sleep(2500 * time.Millisecond)
req, err := http.NewRequest("GET", fullURL, nil)
if err != nil {
@@ -422,4 +422,4 @@ func batchUpsertAll(db *gorm.DB, pbs []models.PlayerGameBasicStat, pas []models.
}
return nil
}
}