Skip to content

Commit

Permalink
Merge pull request #80 from libp2p/fix/dial-additional-dial-timeout
Browse files Browse the repository at this point in the history
remove redundant dial timeout
  • Loading branch information
Stebalien authored Jun 26, 2018
2 parents 5c1c3e7 + eb986b0 commit c471b21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions p2p/net/swarm/swarm_dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c471b21

Please sign in to comment.