From 6d3396b6f978bb5fc99dd59140cfe7ace3ca3f99 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sun, 30 Jul 2023 10:52:03 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20provide=20functionality=20t?= =?UTF-8?q?o=20parse=20the=20new=20config=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/parser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/parser.rs b/src/config/parser.rs index 971cd48..9fec470 100644 --- a/src/config/parser.rs +++ b/src/config/parser.rs @@ -32,6 +32,7 @@ pub struct Config { pub logging: bool, pub debug: bool, pub upstream_search_engines: Vec, + pub request_timeout: u8, } /// Configuration options for the aggregator. @@ -80,6 +81,7 @@ impl Config { .into_iter() .filter_map(|(key, value)| value.then_some(key)) .collect(), + request_timeout: globals.get::<_, u8>("request_timeout")?, }) }) }