Unverified Commit d5102582 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #80 from libp2p/fix/dial-additional-dial-timeout

remove redundant dial timeout
parents fe3975ab 1c4a7fd6
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment