This commit is contained in:
2026-04-22 10:28:52 +02:00
parent ba4a4fdfb7
commit 073266a104
5 changed files with 428 additions and 31 deletions

View File

@@ -398,16 +398,26 @@ pub struct KbHttpEndpointConfig {
pub api_key_env_var: std::option::Option<std::string::String>,
/// Allowed roles for this endpoint.
pub roles: std::vec::Vec<std::string::String>,
/// Requests per second allowed by the local limiter.
/// Requests per second allowed by the local limiter for general RPC methods.
pub requests_per_second: u32,
/// Maximum local burst capacity.
/// Maximum local burst capacity for general RPC methods.
pub burst_capacity: u32,
/// Optional requests per second override for `sendTransaction`-class methods.
pub send_transaction_requests_per_second: std::option::Option<u32>,
/// Optional burst override for `sendTransaction`-class methods.
pub send_transaction_burst_capacity: std::option::Option<u32>,
/// Optional requests per second override for heavy read methods.
pub heavy_requests_per_second: std::option::Option<u32>,
/// Optional burst override for heavy read methods.
pub heavy_burst_capacity: std::option::Option<u32>,
/// Connect timeout in milliseconds.
pub connect_timeout_ms: u64,
/// Total request timeout in milliseconds.
pub request_timeout_ms: u64,
/// Maximum idle pooled connections per host.
pub max_idle_connections_per_host: usize,
/// Automatic pause duration after an HTTP 429 response, in milliseconds.
pub pause_after_http_429_ms: std::option::Option<u64>,
}
impl KbHttpEndpointConfig {