Browse Source

Adding a timeout to the RSS parser

This fixes #22.
beanstalk
Darius Kazemi 3 years ago
parent
commit
7cfe50605c
  1. 2
      updateFeeds.js

2
updateFeeds.js

@ -5,7 +5,7 @@ const db = new Database('bot-node.db'),
Parser = require('rss-parser'),
request = require('request'),
crypto = require('crypto'),
parser = new Parser();
parser = new Parser({timeout: 2000});
// get all feeds from DB
let feeds = db.prepare('select * from feeds').all();

Loading…
Cancel
Save