Adding a timeout to the RSS parser

This fixes #22.
This commit is contained in:
Darius Kazemi 2019-04-13 13:34:49 -07:00
parent c22dbae3b5
commit 7cfe50605c

View file

@ -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();