Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
nintha authored Feb 23, 2018
1 parent 7635919 commit 339a621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 基于nodejs的分布式爬虫客户端使用.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const nowstr = () => moment().format('YYYY-MM-DD HH:mm:ss')
// mids:待处理mid列表,
const packageFetchInsertAsync = async (pid, mids) => {
const BAN_IP_SLEEP_MS = 1000 * 60 * 10; // 10min
const NORMAL_SLEEP_MS = 200; //ms
const NORMAL_SLEEP_MS = 150; //ms
let sleepms = NORMAL_SLEEP_MS

const midSize = mids.length
Expand Down Expand Up @@ -94,7 +94,7 @@ const packageFetchInsertAsync = async (pid, mids) => {
break // 结束本次任务,尝试下个任务
}
}
await sleep(5000)
await sleep(12000)
if (cardList.length === midSize) {
await uploadPackageAsync(pid, cardList)
console.log(`${nowstr()} Send package ${pid}`);
Expand Down

0 comments on commit 339a621

Please sign in to comment.