-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(deps): migrate to jsonrpsee 0.22 #5894
Conversation
The changelog for 21.0 mentions that a middleware could be used, maybe we could use that let rpc_middleware = RpcServiceBuilder::new().rpc_logger(1024);
let server = Server::builder().set_rpc_middleware(rpc_middleware).build("127.0.0.1:0").await?; |
Okay finally pulled through.
actually this can be added with a few more changes, but want to get this pr out of the way first |
0854aa4
to
d04d558
Compare
crates/rpc/rpc-builder/src/lib.rs
Outdated
// let metrics = modules.ipc.as_ref().map(RpcRequestMetrics::new).unwrap_or_default(); | ||
let ipc_path = self | ||
.ipc_endpoint | ||
.unwrap_or_else(|| Endpoint::new(DEFAULT_IPC_ENDPOINT.to_string())); | ||
let ipc = builder.set_logger(metrics).build(ipc_path.path())?; | ||
let ipc = builder | ||
// .set_middleware(metrics) |
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.
follow up?
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.
yep, this needs a few more changes, metrics for ipc are not that important
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 good from my side
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.
lgmt
"rustls", | ||
"rustls-pemfile", | ||
"rustls 0.21.10", | ||
"rustls-pemfile 1.0.4", |
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.
deduped with #7018 on a future jsonrpsee version
the latest release of jsonrpsee removes a bunch of logging functionality which breaks our current rpc metrics setup...
not sure how to proceed with this yet