1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

Update swarm_dial.go

This commit is contained in:
Jeromy Johnson
2015-04-30 13:19:56 -07:00
parent 6f510b322e
commit c43b5c921d

View File

@ -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++ { for i := 0; i < len(remoteAddrs); i++ {
select { select {
case exitErr = <-errs: // case exitErr = <-errs: //
log.Warning("dial error: ", exitErr) log.Debug("dial error: ", exitErr)
case connC := <-conns: case connC := <-conns:
// take the first + return asap // take the first + return asap
close(foundConn) close(foundConn)