mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-12-13 23:29:02 +00:00
Fix wait, add back crawl command
This commit is contained in:
@@ -42,6 +42,7 @@ func Schedule(c context.Context, remotes <-chan *OD) {
|
||||
// Upload result when ready
|
||||
go remote.Watch(results)
|
||||
|
||||
// Sleep if max number of tasks are active
|
||||
for atomic.LoadInt32(&activeTasks) > config.Tasks {
|
||||
select {
|
||||
case <-c.Done():
|
||||
|
||||
Reference in New Issue
Block a user