Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
ba120bcd
Commit
ba120bcd
authored
Apr 30, 2015
by
Jeromy Johnson
Browse files
Update swarm_dial.go
parent
715f8950
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/swarm/swarm_dial.go
View file @
ba120bcd
...
...
@@ -417,7 +417,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, d *conn.Dialer, p peer.ID, remote
for
i
:=
0
;
i
<
len
(
remoteAddrs
);
i
++
{
select
{
case
exitErr
=
<-
errs
:
//
log
.
Warnin
g
(
"dial error: "
,
exitErr
)
log
.
Debu
g
(
"dial error: "
,
exitErr
)
case
connC
:=
<-
conns
:
// take the first + return asap
close
(
foundConn
)
...
...
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