fix 无法及时同步爬虫的问题

This commit is contained in:
陈景阳
2020-01-28 15:43:57 +08:00
parent 3e792a24d2
commit 4825653ae0
4 changed files with 45 additions and 34 deletions

View File

@@ -38,6 +38,12 @@ func (s *SpiderSync) CreateMd5File(md5 string) {
}
}
func (s *SpiderSync) RemoveDownCreate(md5 string) {
s.RemoveSpiderFile()
s.Download()
s.CreateMd5File(md5)
}
// 获得下载锁的key
func (s *SpiderSync) GetLockDownloadKey(spiderId string) string {
node, _ := model.GetCurrentNode()