aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-06 15:43:50 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-06 15:43:50 +0200
commit454d8474ef2b1364750ee96dacae0d69df583f93 (patch)
tree4f2202c76441e751c4f3c8f2d1f6f1838e192686 /src/garage
parented7796924b17ae4e73b21fdd9dfaa0a45bed98ff (diff)
downloadgarage-454d8474ef2b1364750ee96dacae0d69df583f93.tar.gz
garage-454d8474ef2b1364750ee96dacae0d69df583f93.zip
Fix clippy
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index d328c044..0851738d 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -37,11 +37,11 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> {
info!("Initializing Garage main data store...");
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...");
#[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"))]
warn!("Garage was built without OTLP exporter, admin.trace_sink is ignored.");