diff --git a/src/backgrounded.rs b/src/backgrounded.rs index 5d4420a..1028e82 100644 --- a/src/backgrounded.rs +++ b/src/backgrounded.rs @@ -80,7 +80,7 @@ where if let Some(identifier) = self.identifier.take() { let repo = self.repo.clone(); - let cleanup_span = tracing::info_span!(parent: cleanup_parent_span.clone(), "Backgrounded cleanup Identifier", identifier = ?identifier); + let cleanup_span = tracing::info_span!(parent: &cleanup_parent_span, "Backgrounded cleanup Identifier", identifier = ?identifier); tracing::trace_span!(parent: None, "Spawn task").in_scope(|| { actix_rt::spawn( @@ -95,7 +95,7 @@ where if let Some(upload_id) = self.upload_id { let repo = self.repo.clone(); - let cleanup_span = tracing::info_span!(parent: cleanup_parent_span, "Backgrounded cleanup Upload ID", upload_id = ?upload_id); + let cleanup_span = tracing::info_span!(parent: &cleanup_parent_span, "Backgrounded cleanup Upload ID", upload_id = ?upload_id); tracing::trace_span!(parent: None, "Spawn task").in_scope(|| { actix_rt::spawn( diff --git a/src/ingest.rs b/src/ingest.rs index e9ec0b3..4e1e9e1 100644 --- a/src/ingest.rs +++ b/src/ingest.rs @@ -235,7 +235,7 @@ where if let Some(hash) = self.hash.take() { let repo = self.repo.clone(); - let cleanup_span = tracing::info_span!(parent: cleanup_parent_span.clone(), "Session cleanup hash", hash = ?hash); + let cleanup_span = tracing::info_span!(parent: &cleanup_parent_span, "Session cleanup hash", hash = ?hash); tracing::trace_span!(parent: None, "Spawn task").in_scope(|| { actix_rt::spawn( @@ -250,7 +250,7 @@ where if let Some(alias) = self.alias.take() { let repo = self.repo.clone(); - let cleanup_span = tracing::info_span!(parent: cleanup_parent_span.clone(), "Session cleanup alias", alias = ?alias); + let cleanup_span = tracing::info_span!(parent: &cleanup_parent_span, "Session cleanup alias", alias = ?alias); tracing::trace_span!(parent: None, "Spawn task").in_scope(|| { actix_rt::spawn( @@ -272,7 +272,7 @@ where if let Some(identifier) = self.identifier.take() { let repo = self.repo.clone(); - let cleanup_span = tracing::info_span!(parent: cleanup_parent_span, "Session cleanup identifier", identifier = ?identifier); + let cleanup_span = tracing::info_span!(parent: &cleanup_parent_span, "Session cleanup identifier", identifier = ?identifier); tracing::trace_span!(parent: None, "Spawn task").in_scope(|| { actix_rt::spawn(