Skip to content

Commit

Permalink
chore(cellcom): 1984 orwellian reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
oldgalileo committed Jan 30, 2025
1 parent a3f1227 commit e1fcf64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cellcom/src/backend/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ struct CellDataV2 {
pub signal_strength: Option<i32>,
}


pub fn client() -> &'static Client {
static CLIENT: OnceLock<Client> = OnceLock::new();
CLIENT.get_or_init(|| {
Expand All @@ -78,13 +77,15 @@ pub fn get_location(
);

let backend = Backend::from_env()?;

// TODO: Some sort of actual response besides the status code
// maybe one that includes the location? (requires changes on the
// backend)
let _response_raw = client()
.post(EndpointsV2::new(backend, orb_id).status)
.json(&request)
.send()?;
.send()?
.error_for_status()?;

Ok(())
}
Expand Down

0 comments on commit e1fcf64

Please sign in to comment.