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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user