mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 08:31:14 +00:00
refactor: state RPC remove max_rpc_payload_size (#13649)
This limit is not needed anymore as the JSON-RPC servers doesn't terminate the connection if the RPC max limit is exceeded anymore
This commit is contained in:
@@ -169,7 +169,6 @@ pub fn new_full<BE, Block: BlockT, Client>(
|
||||
client: Arc<Client>,
|
||||
executor: SubscriptionTaskExecutor,
|
||||
deny_unsafe: DenyUnsafe,
|
||||
rpc_max_payload: Option<usize>,
|
||||
) -> (State<Block, Client>, ChildState<Block, Client>)
|
||||
where
|
||||
Block: BlockT + 'static,
|
||||
@@ -189,12 +188,9 @@ where
|
||||
+ 'static,
|
||||
Client::Api: Metadata<Block>,
|
||||
{
|
||||
let child_backend = Box::new(self::state_full::FullState::new(
|
||||
client.clone(),
|
||||
executor.clone(),
|
||||
rpc_max_payload,
|
||||
));
|
||||
let backend = Box::new(self::state_full::FullState::new(client, executor, rpc_max_payload));
|
||||
let child_backend =
|
||||
Box::new(self::state_full::FullState::new(client.clone(), executor.clone()));
|
||||
let backend = Box::new(self::state_full::FullState::new(client, executor));
|
||||
(State { backend, deny_unsafe }, ChildState { backend: child_backend })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user