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(), ))