Skip to content

Commit

Permalink
fix: Removed the get_timezones Thunder call from metrics context as t…
Browse files Browse the repository at this point in the history
…his is not used in ontology. (#698)

fix: Removed the get_timezones Thunder call from metrics context as this is not used in ontology
  • Loading branch information
Vinodsathyaseelan authored Dec 17, 2024
1 parent 1139a06 commit 597e078
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/main/src/state/metrics_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ impl MetricsState {
)
.unwrap_or(Self::unset("device.name"));

/* Removing the call to get timezone from Thunder as this is not used in ontology.
let mut timezone: Option<String> = None;
if let Ok(resp) = state
.get_client()
Expand All @@ -302,6 +303,7 @@ impl MetricsState {
timezone = Some(format!("{} {}", tz, offset));
}
}
*/

let mut firmware = String::default();
let mut env = None;
Expand Down Expand Up @@ -422,9 +424,10 @@ impl MetricsState {
.clone()
.unwrap_or(String::from(SEMVER_LIGHTWEIGHT));

if let Some(t) = timezone {
// Removing the call to get timezone from Thunder as this is not used in ontology.
/*if let Some(t) = timezone {
context.device_timezone = t;
}
}*/

context.env = env;
context.activated = activated;
Expand Down

0 comments on commit 597e078

Please sign in to comment.