Skip to content

Commit

Permalink
swap iot config integrated client for previous standalone impl
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald committed Apr 5, 2023
1 parent 428764b commit 472d8e2
Show file tree
Hide file tree
Showing 17 changed files with 139 additions and 462 deletions.
25 changes: 3 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ members = [
"iot_packet_verifier",
"iot_config",
"price",
"iot_config_client"
]

[workspace.package]
Expand Down
22 changes: 0 additions & 22 deletions iot_config_client/Cargo.toml

This file was deleted.

49 changes: 0 additions & 49 deletions iot_config_client/src/gateway_resolver.rs

This file was deleted.

116 changes: 0 additions & 116 deletions iot_config_client/src/iot_config_client.rs

This file was deleted.

10 changes: 0 additions & 10 deletions iot_config_client/src/lib.rs

This file was deleted.

43 changes: 0 additions & 43 deletions iot_config_client/src/region_params_resolver.rs

This file was deleted.

59 changes: 0 additions & 59 deletions iot_config_client/src/settings.rs

This file was deleted.

2 changes: 2 additions & 0 deletions iot_packet_verifier/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ impl ConfigServer for CachedOrgClient {
let mut req = OrgEnableReqV1 {
oui,
timestamp: Utc::now().timestamp_millis() as u64,
signer: self.keypair.public_key().into(),
signature: vec![],
};
let signature = self.keypair.sign(&req.encode_to_vec())?;
Expand All @@ -215,6 +216,7 @@ impl ConfigServer for CachedOrgClient {
let mut req = OrgDisableReqV1 {
oui,
timestamp: Utc::now().timestamp_millis() as u64,
signer: self.keypair.public_key().into(),
signature: vec![],
};
let signature = self.keypair.sign(&req.encode_to_vec())?;
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ file-store = { path = "../file_store" }
metrics = {workspace = true}
retainer = {workspace = true}
blake3 = {workspace = true}
iot-config-client = { path = "../iot_config_client" }
iot-config = { path = "../iot_config" }
poc-metrics = { path = "../metrics" }
db-store = {path = "../db_store"}
denylist = {path = "../denylist"}
Expand Down
Loading

0 comments on commit 472d8e2

Please sign in to comment.