Skip to content
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

fix: remove mdns_legacy #9048

Merged
merged 2 commits into from
Jun 27, 2022
Merged

fix: remove mdns_legacy #9048

merged 2 commits into from
Jun 27, 2022

Conversation

lidel
Copy link
Member

@lidel lidel commented Jun 19, 2022

This PR removes the ancient mdns_legacy implementation.

@marten-seemann @schomatis thoughts on removing old one? any concerns?

@lidel lidel added this to the Best Effort Track milestone Jun 19, 2022
@lidel lidel marked this pull request as ready for review June 19, 2022 22:42
We've been running both implementations for a long, long time.
It is time to remove legacy version and lower the number of LAN packets
IPFS node produces.
Copy link
Member

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

Let's kill it. It's been a while.
Looking forward to removing it from libp2p as well.

@@ -49,12 +48,6 @@ func SetupDiscovery(useMdns bool, mdnsInterval int) func(helpers.MetricsCtx, fx.
if mdnsInterval == 0 {
Copy link
Member

Choose a reason for hiding this comment

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

You can remove this as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

@marten-seemann we have the implicit default documented here – is it the same in libp2p?

Copy link
Member

Choose a reason for hiding this comment

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

This is not configurable any more in the new mDNS implementation.

docs/config.md Show resolved Hide resolved
@lidel
Copy link
Member Author

lidel commented Jun 20, 2022

quick cc:

@dignifiedquire
Copy link
Member

@dignifiedquire iroh is using only the new one (from this spec), right?

yes, I believe that's all rust-libp2p implements at this point

@lidel lidel self-assigned this Jun 21, 2022
@lidel
Copy link
Member Author

lidel commented Jun 26, 2022

Removed Discovery.MDNS.Interval because it is no longer configurable (#9048 (comment)).

Replaced int with *OptionalInteger in the config struct so existing users are not impacted, but new installs won't have a hardcoded value anymore.

Ready for final review / merge – my hope is to ship this in 0.14.

Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

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

LGTM

@Jorropo Jorropo merged commit 61f0710 into master Jun 27, 2022
@Jorropo Jorropo deleted the fix/remove-legacy-mdns branch June 27, 2022 02:17
hannahhoward pushed a commit to filecoin-project/kubo-api-client that referenced this pull request Jun 19, 2023
* fix: remove mdns_legacy

We've been running both implementations for a long, long time.
It is time to remove legacy version and lower the number of LAN packets
IPFS node produces.

See ipfs/kubo#9048 (comment)
for the Interval removal rational.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants