diff --git a/scrape.go b/scrape.go index 015444a..7fff65f 100644 --- a/scrape.go +++ b/scrape.go @@ -28,10 +28,10 @@ func RunScraper(bot *Bot, db *Db, api *Osuapi, requests chan int) { }) // wait a minute and put them back into the queue - go func() { + go func(id int) { time.Sleep(refreshInterval) - requests <- userId - }() + requests <- id + }(userId) } }