优先爬取的队列立即执行

This commit is contained in:
2026-04-10 13:14:12 +08:00
parent c5da660c7f
commit 5b8b256b35
8 changed files with 150 additions and 6 deletions
+1
View File
@@ -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")