abstract the config reload checks
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
99fe88c21e
commit
ed3cd99781
3 changed files with 28 additions and 10 deletions
|
@ -46,14 +46,14 @@ impl Server {
|
|||
.and_then(|raw| crate::clap::update(raw, args))
|
||||
.and_then(|raw| Config::new(&raw))?;
|
||||
|
||||
#[cfg(feature = "sentry_telemetry")]
|
||||
let sentry_guard = crate::sentry::init(&config);
|
||||
|
||||
let (tracing_reload_handle, tracing_flame_guard, capture) =
|
||||
crate::logging::init(&config)?;
|
||||
|
||||
config.check()?;
|
||||
|
||||
#[cfg(feature = "sentry_telemetry")]
|
||||
let sentry_guard = crate::sentry::init(&config);
|
||||
|
||||
#[cfg(unix)]
|
||||
sys::maximize_fd_limit()
|
||||
.expect("Unable to increase maximum soft and hard file descriptor limit");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue