-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor rusk binary #2047
Conversation
3d1e313
to
aeead26
Compare
aeead26
to
f2682d0
Compare
- Add `can_handle` method - Change `Datasources` to support a vec of handlers
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.
Small smell from the handlers. Should only the first that can_handle
a request handle it? Apart from that looks good.
f2682d0
to
9c97797
Compare
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, 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.
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
Refactor rusk binary in order to not require node module dependency:
RuskNodeBuilder
to properly setup a node (useful for tests too)HandleRequest
impl