Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 0a19838

Browse files
remove the DialTimeout (#230)
The timeout should be a configuration option for the swarm, not a global variable.
1 parent a61ab2c commit 0a19838

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

transport/transport.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ import (
1414
ma "github.com/multiformats/go-multiaddr"
1515
)
1616

17-
// DialTimeout is the maximum duration a Dial is allowed to take.
18-
// This includes the time between dialing the raw network connection,
19-
// protocol selection as well the handshake, if applicable.
20-
var DialTimeout = 15 * time.Second
21-
2217
// AcceptTimeout is the maximum duration an Accept is allowed to take.
2318
// This includes the time between accepting the raw network connection,
2419
// protocol selection as well as the handshake, if applicable.

0 commit comments

Comments
 (0)