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

feat: flag for ForceReachability mode in libp2p #150

Merged
merged 2 commits into from
Oct 28, 2021
Merged

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Oct 26, 2021

Most likely needed for sharness tests in ipfs/kubo#8522

swarm.go Outdated Show resolved Hide resolved
@lidel lidel changed the title add a Swarm.Discoverable flag feat: flag for ForceReachability mode in libp2p Oct 27, 2021
@lidel lidel self-assigned this Oct 28, 2021
@lidel lidel changed the base branch from master to circuit-v2 October 28, 2021 21:18
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased and switched to Libp2pForceReachability OptionalString.
I went with a top-level field as it is easier to add/remove than a nested struct.

I'm merging this into #146, then we can switch ipfs/kubo#8522 to a revision that has everything needed to unblock @marten-seemann to work on sharness tests 💫

@lidel lidel merged commit a25573d into circuit-v2 Oct 28, 2021
@lidel lidel deleted the discoverable branch October 28, 2021 22:27
marten-seemann added a commit that referenced this pull request Nov 13, 2021
* remove the EnableRelayHop option in the SwarmConfig

* add an option to disable the limited relay

* make the relay service resources configurable

* refactor: use custom types

This enables us to swap defaults in go-ipfs without touching the config
file generated during `ipfs init`

#146 (comment)
#146 (comment)

* use OptionalDuration in RelayService configuration

* fix: *OptionalInteger with omitempty

This removes null values from the config

* fix: Flag does not need to be a pointer

* refactor: flatten RelayService limits

this simplifies consumer code and removes nil footgun

* docs: clarify different relay types

* feat: flag for ForceReachability mode in libp2p (#150)

adds Internal.Libp2pForceReachability
needed for sharness tests in ipfs/kubo#8522

Co-authored-by: Marcin Rataj <lidel@lidel.org>

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants