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")?, }) }) }