Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #180 from libp2p/fix/swarm-dial-err
Browse files Browse the repository at this point in the history
fix: make sure to include peer in dial error
  • Loading branch information
aarshkshah1992 committed Mar 18, 2020
2 parents da3b8ad + 1a4d0d7 commit ad905b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm_dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ad905b0

Please sign in to comment.