diff --git a/swarm_dial.go b/swarm_dial.go index 475a7e250eab269952705d7902ec556b9270641c..f2b21abf0a40a7d627f8ba0b2db262d69c188ff8 100644 --- a/swarm_dial.go +++ b/swarm_dial.go @@ -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)