feat: add alias for max response size (#3902)

This commit is contained in:
Matthias Seitz
2023-07-25 16:35:58 +02:00
committed by GitHub
parent f7e887fb35
commit 1c4e19bad7

View File

@ -120,7 +120,7 @@ pub struct RpcServerArgs {
pub rpc_max_request_size: u32,
/// Set the maximum RPC response payload size for both HTTP and WS in megabytes.
#[arg(long, default_value_t = RPC_DEFAULT_MAX_RESPONSE_SIZE_MB)]
#[arg(long, visible_alias = "--rpc.returndata.limit", default_value_t = RPC_DEFAULT_MAX_RESPONSE_SIZE_MB)]
pub rpc_max_response_size: u32,
/// Set the the maximum concurrent subscriptions per connection.