-
Notifications
You must be signed in to change notification settings - Fork 53
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
refactor: REST - create rest/builder.nim and simplify factory/app.nim #2610
Conversation
You can find the image built from this PR at
Built from 60568ac |
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
I like this a lot!
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 we are crossing our works. Can you please take a look at mine. I will draft it now. I'm just adding a final json serialization for a bit extended /health endpoint.
To enable separation of initialization health from other endpoints and start rest server earlier, I needed to rework to order of rest initialization.
Still, I agree to simplify waku node initialization order due I found its overly complicated.
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.
Looks amazing! Thanks so much! Love this change 😍
Just added a tiny question
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.
Thanks so much!
Closing because has been solved in #2623 |
Description
Extract some REST logic from app.nim, aiming for simplify
app.nim
a little.I will submit a couple of similar PRs simplifying
app.nim
.Issue
With that simplification, this PR indirectly contributes to the following: migrate DiscV5 and DNS Discovery from app.nim to waku_node.nim #2452