Authored by 周少峰

resolve promise

... ... @@ -60,8 +60,10 @@ module.exports = (limiter, policy) => {
if (results[synchronizeKey] > 10 && !results[asynchronousKey]) {
cache.setAsync(spiderKey, 1, 60 * 60 * 24);
return Promise.reject(policy);
return Promise.resolve(policy);
}
return Promise.resolve(true);
});
};
... ...