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-p2p-swarm
Commits
d5102582
Unverified
Commit
d5102582
authored
Jun 26, 2018
by
Steven Allen
Committed by
GitHub
Jun 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #80 from libp2p/fix/dial-additional-dial-timeout
remove redundant dial timeout
parents
fe3975ab
1c4a7fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
swarm_dial.go
swarm_dial.go
+0
-3
No files found.
swarm_dial.go
View file @
d5102582
...
...
@@ -405,9 +405,6 @@ func (s *Swarm) dialAddr(ctx context.Context, p peer.ID, addr ma.Multiaddr) (tra
return
nil
,
ErrNoTransport
}
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
transport
.
DialTimeout
)
defer
cancel
()
connC
,
err
:=
tpt
.
Dial
(
ctx
,
addr
,
p
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"%s --> %s dial attempt failed: %s"
,
s
.
local
,
p
,
err
)
...
...
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