Skip to content

Commit

Permalink
remove the timeoutOpt
Browse files Browse the repository at this point in the history
Timeout should only be set by using contexts.
  • Loading branch information
marten-seemann committed Sep 6, 2017
1 parent d29927f commit d7cda66
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions p2p/transport/tcp/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net"
"sync"
"time"

logging "github.com/ipfs/go-log"
reuseport "github.com/jbenet/go-reuseport"
Expand Down Expand Up @@ -56,8 +55,6 @@ func (t *TcpTransport) Dialer(laddr ma.Multiaddr, opts ...tpt.DialOpt) (tpt.Dial
var doReuse bool
for _, o := range opts {
switch o := o.(type) {
case tpt.TimeoutOpt:
base.Timeout = time.Duration(o)
case tpt.ReuseportOpt:
doReuse = bool(o)
default:
Expand Down

0 comments on commit d7cda66

Please sign in to comment.