forked from Deuxfleurs/garage
Fix clippy
This commit is contained in:
parent
ed7796924b
commit
454d8474ef
1 changed files with 2 additions and 2 deletions
|
@ -37,11 +37,11 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> {
|
||||||
info!("Initializing Garage main data store...");
|
info!("Initializing Garage main data store...");
|
||||||
let garage = Garage::new(config.clone(), background)?;
|
let garage = Garage::new(config.clone(), background)?;
|
||||||
|
|
||||||
if let Some(export_to) = config.admin.trace_sink {
|
if config.admin.trace_sink.is_some() {
|
||||||
info!("Initialize tracing...");
|
info!("Initialize tracing...");
|
||||||
|
|
||||||
#[cfg(feature = "telemetry-otlp")]
|
#[cfg(feature = "telemetry-otlp")]
|
||||||
init_tracing(&export_to, garage.system.id)?;
|
init_tracing(config.admin.trace_sink.as_ref().unwrap(), garage.system.id)?;
|
||||||
|
|
||||||
#[cfg(not(feature = "telemetry-otlp"))]
|
#[cfg(not(feature = "telemetry-otlp"))]
|
||||||
warn!("Garage was built without OTLP exporter, admin.trace_sink is ignored.");
|
warn!("Garage was built without OTLP exporter, admin.trace_sink is ignored.");
|
||||||
|
|
Loading…
Reference in a new issue