mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(reth-ipc): pass through extensions from request (#11300)
This commit is contained in:
@ -6,8 +6,8 @@ use jsonrpsee::{
|
||||
IdProvider,
|
||||
},
|
||||
types::{error::reject_too_many_subscriptions, ErrorCode, ErrorObject, Request},
|
||||
BoundedSubscriptions, ConnectionId, Extensions, MethodCallback, MethodResponse, MethodSink,
|
||||
Methods, SubscriptionState,
|
||||
BoundedSubscriptions, ConnectionId, MethodCallback, MethodResponse, MethodSink, Methods,
|
||||
SubscriptionState,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
|
||||
@ -58,7 +58,7 @@ impl<'a> RpcServiceT<'a> for RpcService {
|
||||
let params = req.params();
|
||||
let name = req.method_name();
|
||||
let id = req.id().clone();
|
||||
let extensions = Extensions::new();
|
||||
let extensions = req.extensions.clone();
|
||||
|
||||
match self.methods.method_with_name(name) {
|
||||
None => {
|
||||
|
||||
Reference in New Issue
Block a user