Skip to content

feat: Support top level service options rdvp and relay nodes#112

Merged
jefft0 merged 2 commits into
berty:mainfrom
jefft0:feat/top-level-service-options
May 23, 2025
Merged

feat: Support top level service options rdvp and relay nodes#112
jefft0 merged 2 commits into
berty:mainfrom
jefft0:feat/top-level-service-options

Conversation

@jefft0
Copy link
Copy Markdown
Contributor

@jefft0 jefft0 commented May 23, 2025

The Opts for the general-purpose NewServiceClient now has P2PStaticRelays and P2PRdvpMaddrs. We want users of the more specific helper functions NewInMemoryServiceClient and NewPersistentServiceClient to be able to use them.

  • Move the options for OOSMOption and related functions to the sub package pkg/outofstoremessage . This frees up the namespace weshnet
  • Add ServiceOption and related "With" functions like WithP2PStaticRelays
  • In NewInMemoryServiceClient and NewPersistentServiceClient, copy the supplied options to Opts

jefft0 added 2 commits May 22, 2025 11:51
Signed-off-by: Jeff Thompson <jeff@thefirst.org>
… options

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
@jefft0 jefft0 marked this pull request as ready for review May 23, 2025 08:21
@jefft0 jefft0 requested a review from D4ryl00 May 23, 2025 08:21
Copy link
Copy Markdown
Collaborator

@D4ryl00 D4ryl00 left a comment

Choose a reason for hiding this comment

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

LGTM

@jefft0 jefft0 merged commit f3547c6 into berty:main May 23, 2025
15 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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