From 0132a63e6f88b33d641b6ee54c99a3582f744988 Mon Sep 17 00:00:00 2001 From: alamin655 Date: Mon, 11 Sep 2023 11:58:31 +0530 Subject: [PATCH] Apply suggestions from code review --- src/config/parser_models.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/parser_models.rs b/src/config/parser_models.rs index 343b70c..21140dd 100644 --- a/src/config/parser_models.rs +++ b/src/config/parser_models.rs @@ -48,7 +48,7 @@ pub struct AggregatorConfig { pub random_delay: bool, } -/// Configuration options for the rate limter middleware. +/// Configuration options for the rate limiter middleware. /// /// # Fields /// diff --git a/src/lib.rs b/src/lib.rs index a1213d6..6c63270 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,8 +71,8 @@ pub fn run(listener: TcpListener, config: Config) -> std::io::Result { .wrap(cors) .wrap(Governor::new( &GovernorConfigBuilder::default() - .per_second(config.rate_limter.time_limit as u64) - .burst_size(config.rate_limter.number_of_requests as u32) + .per_second(config.rate_limiter.time_limit as u64) + .burst_size(config.rate_limiter.number_of_requests as u32) .finish() .unwrap(), ))