Browse Source

routed host: return connection error instead of routing error (#2169)

marco/identify-fix
Hlib Kanunnikov 2 years ago
committed by GitHub
parent
commit
75efaee5cb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      p2p/host/routed/routed.go

3
p2p/host/routed/routed.go

@ -114,7 +114,8 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi peer.AddrInfo) error {
// try to connect again.
newAddrs, err := rh.findPeerAddrs(ctx, pi.ID)
if err != nil {
return fmt.Errorf("failed to find peers: %w", err)
log.Debugf("failed to find more peer addresses %s: %s", pi.ID, err)
return cerr
}
// Build lookup map

Loading…
Cancel
Save