From efe006edf19aff9e9a13135266ea6dc5dfc824b0 Mon Sep 17 00:00:00 2001 From: Qiping Luo Date: Mon, 18 Mar 2024 14:11:59 +0800 Subject: [PATCH] [rust] remove is_started condition check because telemetry_command_tx is suffice to tell (#711) --- rust/src/session.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rust/src/session.rs b/rust/src/session.rs index 7b2643c8..cd84f927 100644 --- a/rust/src/session.rs +++ b/rust/src/session.rs @@ -367,15 +367,6 @@ impl Session { &mut self, settings: TelemetryCommand, ) -> Result<(), ClientError> { - if !self.is_started() { - return Err(ClientError::new( - ErrorKind::ClientIsNotRunning, - "session is not started", - OPERATION_UPDATE_SETTINGS, - ) - .with_context("url", self.endpoints.endpoint_url())); - } - if let Some(tx) = self.telemetry_tx.as_ref() { tx.send(settings).await.map_err(|e| { ClientError::new(