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

Commit

Permalink
remove the DialTimeout (#230)
Browse files Browse the repository at this point in the history
The timeout should be a configuration option for the swarm, not a global
variable.
  • Loading branch information
marten-seemann authored Dec 20, 2021
1 parent a61ab2c commit 0a19838
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import (
ma "github.com/multiformats/go-multiaddr"
)

// DialTimeout is the maximum duration a Dial is allowed to take.
// This includes the time between dialing the raw network connection,
// protocol selection as well the handshake, if applicable.
var DialTimeout = 15 * time.Second

// AcceptTimeout is the maximum duration an Accept is allowed to take.
// This includes the time between accepting the raw network connection,
// protocol selection as well as the handshake, if applicable.
Expand Down

0 comments on commit 0a19838

Please sign in to comment.