mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-03 07:47:05 +00:00
rpc server: add rate limiting middleware (#3301)
Add RPC server rate limiting which can be utilized by the CLI `--rpc-rate-limit <calls/per minute>` Resolves first part of https://github.com/paritytech/polkadot-sdk/issues/3028 //cc @PierreBesson @kogeler you might be interested in this one --------- Co-authored-by: James Wilson <james@jsdw.me> Co-authored-by: Xiliang Chen <xlchen1291@gmail.com>
This commit is contained in:
16 files changed
+257
-23
No files matched your search
@@ -403,6 +403,7 @@ where
|
||||
id_provider: rpc_id_provider,
|
||||
cors: config.rpc_cors.as_ref(),
|
||||
tokio_handle: config.tokio_handle.clone(),
|
||||
rate_limit: config.rpc_rate_limit,
|
||||
};
|
||||
|
||||
// TODO: https://github.com/paritytech/substrate/issues/13773
|
||||
|
||||
Reference in new issue
Block a user