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

advertisement callback now returns the list of provided namespaces #4

Merged
merged 6 commits into from
Mar 16, 2023

Conversation

dimalinux
Copy link
Collaborator

@dimalinux dimalinux commented Mar 8, 2023

Before this PR we had a ShouldAdvertiseFunc that wasn't really determining if we should advertise. It was determining if we should advertise additional namespaces on top of the empty namespace.

This PR replaces SetShouldAdvertiseFunc with SetAdvertisedNamespacesFunc. The new callback returns the list of namespaces that should be advertised including the empty namespace.

This PR will be merged first in conjunction with AthanorLabs/atomic-swap#342.

@dimalinux dimalinux marked this pull request as draft March 8, 2023 05:44
@dimalinux dimalinux changed the title changed advertisement callback to return the provided namespaces advertisement callback now returns the list of provided namespaces Mar 8, 2023
@dimalinux dimalinux marked this pull request as ready for review March 11, 2023 19:17
@dimalinux dimalinux requested a review from noot March 11, 2023 19:17
host.go Outdated Show resolved Hide resolved
@noot noot merged commit a37beea into master Mar 16, 2023
@noot noot deleted the dimalinux/callback-for-namespaces branch March 16, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants