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

Commit

Permalink
feat: Internal.Libp2pForceReachability
Browse files Browse the repository at this point in the history
needed for sharness tests in ipfs/kubo#8522
  • Loading branch information
lidel committed Oct 28, 2021
1 parent a96534d commit 91a83cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion internal.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package config

type Internal struct {
Bitswap *InternalBitswap `json:",omitempty"` // This is omitempty since we are expecting to make changes to all subcomponents of Internal
// All marked as omitempty since we are expecting to make changes to all subcomponents of Internal
Bitswap *InternalBitswap `json:",omitempty"`
UnixFSShardingSizeThreshold *OptionalString `json:",omitempty"`
Libp2pForceReachability *OptionalString `json:",omitempty"`
}

type InternalBitswap struct {
Expand Down
3 changes: 0 additions & 3 deletions swarm.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package config

type SwarmConfig struct {
// Discoverable determines if the node is forcing its reachability status.
Discoverable Flag `json:",omitempty"`

// AddrFilters specifies a set libp2p addresses that we should never
// dial or receive connections from.
AddrFilters []string
Expand Down

0 comments on commit 91a83cf

Please sign in to comment.