move clap; fix version

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and June 🍓🦴 committed 2024-05-21 20:22:17 -04:00
1 parent 74832bdc47
commit 2dd5cf8c68
4 files changed
+11 -10

No files matched your search

+4 -2
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);