-
Notifications
You must be signed in to change notification settings - Fork 61
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
chore: factory cleanup #2523
chore: factory cleanup #2523
Conversation
You can find the image built from this PR at
Built from 390cd05 |
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.
Less public procs 💪
Thank you!
@@ -85,6 +85,38 @@ func node*(app: App): WakuNode = | |||
func version*(app: App): string = | |||
app.version | |||
|
|||
## Retrieve dynamic bootstrap nodes (DNS discovery) | |||
|
|||
proc retrieveDynamicBootstrapNodes*(dnsDiscovery: bool, |
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.
I feel like this would be useful to many kind of apps but then without a plugin system of some sort... 🤷 maybe one day!
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.
LGTM! In the future, we may need to revert the mentioned proc movement.
Cheers
@@ -85,6 +85,38 @@ func node*(app: App): WakuNode = | |||
func version*(app: App): string = | |||
app.version | |||
|
|||
## Retrieve dynamic bootstrap nodes (DNS discovery) | |||
|
|||
proc retrieveDynamicBootstrapNodes*(dnsDiscovery: bool, |
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.
I think is better to keep this in the node_factory.nim
so that the libwaku
could potentially benefit from it when we add this feature. wdyt @jm-clius ?
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.
Sounds good to me :) Will wait a bit before merging so we confirm it and if so I'll update the PR 🤩
Description
Cleaning
node_factory.nim
. Only exportingsetupNode()
andstartNode()
.Changes
retrieveDynamicBootstrapNodes()
toapp.nim
node_factory.nim
Issue
extends #2441