Add feature flags to Opt structure

Resolves: #3469
See also: #2763
This commit is contained in:
James 2023-02-21 07:41:41 +00:00
parent 91048d209d
commit 5cff435bf6

View File

@ -249,6 +249,7 @@ impl From<Opt> for Infos {
// to add analytics when we add a field in the Opt.
// Thus we must not insert `..` at the end.
let Opt {
#[cfg(features = "metrics")]
enable_metrics_route: _,
db_path,
http_addr,