Skip to content

Commit

Permalink
[rust] remove is_started condition check because telemetry_command_tx…
Browse files Browse the repository at this point in the history
… is suffice to tell (#711)
  • Loading branch information
glcrazier authored Mar 18, 2024
1 parent fe3805c commit efe006e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions rust/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit efe006e

Please sign in to comment.