0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-21 21:48:21 -05:00

feat: add code to parse the new config option (#203)

This commit is contained in:
neon_arch 2023-09-02 20:21:48 +03:00
parent 4eb75a8cb1
commit 8cba040d80

View File

@ -52,8 +52,8 @@ pub struct AggregatorConfig {
///
/// # Fields
///
/// * `number_of_requests` -
/// * `time_limit` -
/// * `number_of_requests` - The number of request that are allowed within a provided time limit.
/// * `time_limit` - The time limit in which the quantity of requests that should be accepted.
#[derive(Clone)]
pub struct RateLimiter {
pub number_of_requests: u8,