From 8cba040d80857a2b381857cfb1c25be30cdf29b4 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 2 Sep 2023 20:21:48 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20code=20to=20parse=20t?= =?UTF-8?q?he=20new=20config=20option=20(#203)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/parser_models.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/parser_models.rs b/src/config/parser_models.rs index 14e4dd6..4a986fd 100644 --- a/src/config/parser_models.rs +++ b/src/config/parser_models.rs @@ -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,