add comment

This commit is contained in:
Hongbo Wu 2024-01-05 15:41:01 +08:00
parent ccd4f2d3f0
commit 44bed67e35

View file

@ -68,6 +68,7 @@ const isFeedBlocked = async (feedUrl: string, redisClient: RedisClient) => {
// if the feed has failed to fetch more than certain times, block it
const maxFailures = parseInt(process.env.MAX_FEED_FETCH_FAILURES ?? '10')
if (result && parseInt(result) > maxFailures) {
console.log('feed is blocked: ', feedUrl)
return true
}
} catch (error) {