Unverified Commit ad905b0a authored by Aarsh Shah's avatar Aarsh Shah Committed by GitHub

Merge pull request #180 from libp2p/fix/swarm-dial-err

fix: make sure to include peer in dial error
parents da3b8ade 1a4d0d70
...@@ -387,7 +387,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma. ...@@ -387,7 +387,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma.
// use a single response type instead of errs and conns, reduces complexity *a ton* // use a single response type instead of errs and conns, reduces complexity *a ton*
respch := make(chan dialResult) respch := make(chan dialResult)
err := new(DialError) err := &DialError{Peer: p}
defer s.limiter.clearAllPeerDials(p) defer s.limiter.clearAllPeerDials(p)
......
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