Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 6bd287c

Browse files
committed
fix: increase dial timeout
1 parent 292e922 commit 6bd287c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transport.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const LimitDialer = require('./limit-dialer')
1212
const defaultPerPeerRateLimit = 8
1313

1414
// the amount of time a single dial has to succeed
15-
const dialTimeout = 10 * 1000
15+
// TODO this should be exposed as a option
16+
const dialTimeout = 30 * 1000
1617

1718
module.exports = function (swarm) {
1819
const dialer = new LimitDialer(defaultPerPeerRateLimit, dialTimeout)

0 commit comments

Comments
 (0)