fix(reth-ipc): pass through extensions from request (#11300)

This commit is contained in:
ben
2024-09-27 14:15:39 -04:00
committed by GitHub
parent 5b585ebc22
commit 49f044f6e1

View File

@ -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 => {