Commit 1a4d0d70 authored by Steven Allen's avatar Steven Allen

fix: make sure to include peer in dial error

parent da3b8ade
......@@ -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*
respch := make(chan dialResult)
err := new(DialError)
err := &DialError{Peer: 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