diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..892e34b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + + +## [1.2.10] - 2019-08-06 + +- Lower socketcluster client timeout from 10s to 2s diff --git a/package.json b/package.json index d4df3f3..de80471 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deadlock-delegate/crawler", - "version": "1.2.9", + "version": "1.2.10", "description": "Crawler scans the ARK network to get information about the peers in the network.", "main": "src/crawler.js", "scripts": { diff --git a/src/peer.js b/src/peer.js index e9d7b21..4a264ff 100644 --- a/src/peer.js +++ b/src/peer.js @@ -10,7 +10,7 @@ class Peers { if (connection) { return connection } - connection = SocketClient.create({ hostname: ip, port }) + connection = SocketClient.create({ hostname: ip, port, connectTimeout: 2000 }) connection.on('error', (err) => { console.error(err) connection.destroy()