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

Refactor rusk binary #2047

Merged
merged 4 commits into from
Aug 1, 2024
Merged

Refactor rusk binary #2047

merged 4 commits into from
Aug 1, 2024

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Jul 29, 2024

Refactor rusk binary in order to not require node module dependency:

  • Add RuskNodeBuilder to properly setup a node (useful for tests too)
  • Change HTTP DataSource to support dynamic list of available HandleRequest impl

@herr-seppia herr-seppia requested a review from ZER0 July 29, 2024 16:07
@herr-seppia herr-seppia changed the title Refactor rusk lib Refactor rusk binary Jul 30, 2024
@herr-seppia herr-seppia requested review from ureeves and goshawk-3 July 30, 2024 11:03
@herr-seppia herr-seppia marked this pull request as ready for review July 30, 2024 11:03
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

Small smell from the handlers. Should only the first that can_handle a request handle it? Apart from that looks good.

rusk/src/lib/http.rs Show resolved Hide resolved
@herr-seppia herr-seppia requested a review from ureeves July 31, 2024 10:18
Copy link
Contributor

@ZER0 ZER0 left a comment

Choose a reason for hiding this comment

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

LGTM, it's a first step in the right direction. As discussed during our pairing, the hierarchy of the components should be different from what it's now, but it's more about a mental model that we can change after this PR is landed, I don't want to delay it, so we can merge the events too.

rusk/src/lib/http.rs Show resolved Hide resolved
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

LGTM

@herr-seppia herr-seppia merged commit 4fcc392 into master Aug 1, 2024
8 checks passed
@herr-seppia herr-seppia deleted the refactor-rusk-lib branch August 1, 2024 10:40
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.

3 participants