Skip to content

Commit

Permalink
add changelog, reduce socketCluster timeout to 2s
Browse files Browse the repository at this point in the history
  • Loading branch information
roks0n committed Aug 7, 2019
1 parent ad03b22 commit ec80289
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog


## [1.2.10] - 2019-08-06

- Lower socketcluster client timeout from 10s to 2s
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ec80289

Please sign in to comment.