Commit ab98915d authored by Marten Seemann's avatar Marten Seemann

remove the timeoutOpt

Timeout should only be set by using contexts.
parent 426c89fd
......@@ -5,7 +5,6 @@ import (
"fmt"
"net"
"sync"
"time"
logging "github.com/ipfs/go-log"
reuseport "github.com/jbenet/go-reuseport"
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment