move clap; fix version

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-05-20 08:11:05 +00:00 committed by June 🍓🦴
parent 74832bdc47
commit 2dd5cf8c68
4 changed files with 11 additions and 10 deletions

View file

@ -5,12 +5,14 @@ use conduit::{
config::Config,
info,
log::{LogLevelReloadHandles, ReloadHandle},
utils::{clap, maximize_fd_limit},
utils::maximize_fd_limit,
Error, Result,
};
use tokio::runtime;
use tracing_subscriber::{prelude::*, reload, EnvFilter, Registry};
use crate::clap::Args;
/// Server runtime state; complete
pub(crate) struct Server {
/// Server runtime state; public portion
@ -27,7 +29,7 @@ pub(crate) struct Server {
}
impl Server {
pub(crate) fn build(args: clap::Args, runtime: Option<&runtime::Handle>) -> Result<Arc<Server>, Error> {
pub(crate) fn build(args: Args, runtime: Option<&runtime::Handle>) -> Result<Arc<Server>, Error> {
let config = Config::new(args.config)?;
#[cfg(feature = "sentry_telemetry")]
let sentry_guard = init_sentry(&config);