Skip to content

Commit

Permalink
routed host: return connection error instead of routing error (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan authored Mar 3, 2023
1 parent 98837aa commit 75efaee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/host/routed/routed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75efaee

Please sign in to comment.