From 002055cb9fbf8a8ac8ac3e5e3f84f34f49545c0b Mon Sep 17 00:00:00 2001 From: Floriane TUERNAL SABOTINOV Date: Mon, 8 Sep 2025 13:20:28 +0200 Subject: [PATCH] rm clone because panic --- .../client_handling/websocket/connection_handler/fresh.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs index 6bceb15256..5966ed0eaa 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -917,7 +917,8 @@ impl FreshHandler { } => self.handle_register(protocol_version, data).await, ClientControlRequest::SupportedProtocol { .. } => { self.handle_reply_supported_protocol_request().await; - return Ok((None, Some(child_span.clone()))); + let exit_span = info_span!("supported_protocol_request_handled"); + return Ok((None, Some(exit_span))); } _ => { debug!("received an invalid client request"); @@ -957,7 +958,8 @@ impl FreshHandler { return Err(InitialAuthenticationError::EmptyClientDetails); }; - Ok((Some(client_details), Some(child_span.clone()))) + let exit_span = info_span!("initial client request handled"); + Ok((Some(client_details), Some(exit_span))) } #[instrument(skip_all)]