From ce9ace9e5ae4c63e2099abbdb2748b40c6724a9e Mon Sep 17 00:00:00 2001 From: Nikhil Prasad Date: Wed, 24 Jun 2026 17:28:07 -0500 Subject: [PATCH] Increase sleep duration in box score scraping --- services/box_score_scrape_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/box_score_scrape_service.go b/services/box_score_scrape_service.go index 2a453fd..080b4d2 100644 --- a/services/box_score_scrape_service.go +++ b/services/box_score_scrape_service.go @@ -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 -} \ No newline at end of file +}