✨ feat: provide functionality to parse the new config option
This commit is contained in:
parent
d3007e3e88
commit
6d3396b6f9
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ pub struct Config {
|
|||
pub logging: bool,
|
||||
pub debug: bool,
|
||||
pub upstream_search_engines: Vec<String>,
|
||||
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")?,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue