-
Notifications
You must be signed in to change notification settings - Fork 248
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: upgrade jsonrpsee to 0.11 #261
Conversation
4bdfe9f
to
5b51086
Compare
If you mean this error:
Looking at it, it's quite difficult to understand from the error message. Since it used to be that
So our ErrorCode can be converted to i32 with Hopefully this helps you forwards! Please keep asking questions but as a reminder we haven't done the upgrade yet so there might be more troublesome parts ahead! |
Using |
@koivunej thanks so much for your feedback! I made some progress and the binary is compiling now! |
67ad1d0
to
91fa3b2
Compare
You can just add commits for now and rebase when done, it would be easier to follow to help if need be. |
@tarrencev I found the cause for |
awesome. thanks for taking it on. should we close this in favor of your pr? |
Let's just keep it these both open, I can handle the merging of the work when we are done reviewing. Thanks a lot for getting the ball rolling! |
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
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.
Looking good 👍
@koivunej anything i can help with to push this across the line? :) |
1ea7ec3
to
c524e30
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.
Some clippy, test and doc fixes required.
@tarrencev We will be postponing this until we get the next release out, so nothing at the moment. Of course, feel free to handle any of the clippy/doc failures, which should be quite straight forward. |
ok thanks for the update! i'll keep this branch in shape and work on another on top to expose the health check |
The failed |
The remaining test failures should work okay, the issue is with secrets. |
Rebased to the latest, secrets are still the only issue. |
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!
this is not necessarily great, since these strings were also from the spec. however, duplication is duplication. maybe should add a comment instead to note what the strings are used in ErrorCode. also removes the rpc::tests::errors statics and the get_err function used to unwrap jsonrpsee 0.6 error response.
instead of rebuilding the errorobject in the partialeq and duplicating code, rebuild the jsonrpsee::...::Error from the ErrorCode or hardcoded EventFilterError. also 1) scopes down the `use` for jsonrpsee::...::Error because the file has too many items with "error" in their name and 2) adds a debug assertion for using From<ErrorCode> for jsonrpsee::...::Error with the PageSizeTooBig. perhaps there's a better idea to be found for this.
Allright, thanks a lot @tarrencev! Apologies for the delay, we had some interesting times with releases and bugs in the meantime :) |
i've started the process of upgrading to 0.11 to support configuring the hyper instance to handle health checks. it's mostly just adjusting imports/namespaces. im pretty new to rust, so would appreciate any feedback / guidance. in particular, i'm struggling to case the errors to the new type