Skip to content

Commit

Permalink
fix: open API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 6, 2023
1 parent 75bdcf1 commit a19da88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openapi/SwarmCommon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ components:
$ref: "#/components/schemas/Address"
fullNode:
type: boolean
p2pTransport:
underlay:
type: array
nullable: true
items:
type: string
$ref: "SwarmCommon.yaml#/components/schemas/MultiAddress"


BlockListedPeers:
Expand Down
2 changes: 1 addition & 1 deletion pkg/p2p/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Discover(ctx context.Context, addr ma.Multiaddr, f func(ma.Multiaddr) (bool
return false, errors.New("non-resolvable API endpoint")
}

// sort addrs so that quic is tried first
// Prioritize QUIC transport connections over the others.
sort.Slice(addrs, func(i, j int) bool {
return strings.Contains(addrs[i].String(), "/quic")
})
Expand Down

0 comments on commit a19da88

Please sign in to comment.