-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: update go-libp2p to v0.16.0 #8522
Conversation
cfe9509
to
65f6bfa
Compare
65f6bfa
to
1026be3
Compare
|
||
#### `Swarm.RelayServiceOpts.MaxReservationsPerPeer` | ||
|
||
Maximum number of reservations originating from the same peer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to explain how this is refreshed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored config and docs in this PR to follow go-ipfs-config changes from ipfs/go-ipfs-config#146.
don't we also want to optionally enable hole punching, at least when autorelay is enabled? |
We probably want to get libp2p/go-libp2p#1214 merged. I'm not sure this is realistic before we the IPFS release is cut. |
Circleci is working again so I've re-run yesterday's jobs. The GO-JS interop tests fail due to Do we need to refactor tests so both ends to speak v2, |
This comment has been minimized.
This comment has been minimized.
Clarified docs based on #8522 (comment) License: MIT Signed-off-by: Marcin Rataj <[email protected]>
|
||
Time limit before a relayed connection is reset. | ||
|
||
Default: `"2m"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 those "defaults" come from libp2p. Should we hardcode them in go-ipfs using WithDefaults
?
Right now this PR uses 0
as placeholder and the actual default value that is delegated to go-ipfs, so if go-libp2p changes the defaults, docs will get out of date.
needed for sharness tests in ipfs/kubo#8522
adds Internal.Libp2pForceReachability needed for sharness tests in ipfs/kubo#8522 Co-authored-by: Marcin Rataj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some config updates:
- switched to the latest version of feat: Swarm.RelayService (circuit v2) go-ipfs-config#146 and updated docs to reflect recent changes
Internal.Libp2pForceReachability
(OptionalString) should be available now, feel free to wire it up somewhere withforceReachability := cfg.Internal.Libp2pForceReachability.WithDefault("")
Clarified docs based on #8522 (comment) License: MIT Signed-off-by: Marcin Rataj <[email protected]>
b05c673
to
1741a58
Compare
c0c40eb
to
9e27b76
Compare
This is for testing the libp2p release, since the context changes are not plumbed all the way through.
9e27b76
to
4142b46
Compare
This is for testing the libp2p release, since the context changes are not plumbed all the way through.
3da98d5
to
fde7d01
Compare
fde7d01
to
b526b28
Compare
…8559) * exit when Swarm.EnableRelayHop is set * chore: go-ipfs-config v0.18.0 Co-authored-by: Marcin Rataj <[email protected]>
Continued in #8563 |
Needed for: ipfs/kubo#8522
* 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` ipfs/go-ipfs-config#146 (comment) ipfs/go-ipfs-config#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 (ipfs#150) adds Internal.Libp2pForceReachability needed for sharness tests in ipfs#8522 Co-authored-by: Marcin Rataj <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
* 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` ipfs/go-ipfs-config#146 (comment) ipfs/go-ipfs-config#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 (ipfs#150) adds Internal.Libp2pForceReachability needed for sharness tests in ipfs#8522 Co-authored-by: Marcin Rataj <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
* 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` ipfs/go-ipfs-config#146 (comment) ipfs/go-ipfs-config#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 (ipfs#150) adds Internal.Libp2pForceReachability needed for sharness tests in ipfs#8522 Co-authored-by: Marcin Rataj <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
* 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` ipfs/go-ipfs-config#146 (comment) ipfs/go-ipfs-config#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 (ipfs#150) adds Internal.Libp2pForceReachability needed for sharness tests in ipfs#8522 Co-authored-by: Marcin Rataj <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
This is still a draft, as it references a commit on master (go-libp2p v0.16.0 is not yet released).