Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-tcp-transport
Commits
ab98915d
Commit
ab98915d
authored
Sep 06, 2017
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the timeoutOpt
Timeout should only be set by using contexts.
parent
426c89fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
tcp.go
tcp.go
+0
-3
No files found.
tcp.go
View file @
ab98915d
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment