优先爬取的队列立即执行
This commit is contained in:
@@ -175,6 +175,7 @@ func main() {
|
||||
// 从 info 服务获取繁荣表快照,用于调度优先级决策
|
||||
prosperMap := infoSvc.ProsperMap()
|
||||
crawl := crawler.New(db, anal, prosperMap)
|
||||
searchSrv.SetCrawler(crawl) // 注入爬虫用于 Priority URL 立即触发
|
||||
go crawl.Run(*entryURL, config.MaxEpoch())
|
||||
|
||||
log.Println("all modules started — press Ctrl-C to stop")
|
||||
|
||||
Reference in New Issue
Block a user