Skip to content

Commit

Permalink
add dump support for verified sub location reports
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jun 21, 2023
1 parent 667f9d5 commit b12b889
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion file_store/src/cli/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
heartbeat::{CellHeartbeat, CellHeartbeatIngestReport},
iot_packet::IotValidPacket,
mobile_session::DataTransferSessionIngestReport,
mobile_subscriber::SubscriberLocationIngestReport,
mobile_subscriber::{SubscriberLocationIngestReport, VerifiedSubscriberLocationIngestReport},
speedtest::{CellSpeedtest, CellSpeedtestIngestReport},
traits::MsgDecode,
FileType, Result, Settings,
Expand Down Expand Up @@ -228,6 +228,14 @@ impl Cmd {
"carrier_pub_key": report.report.carrier_pub_key,
"recv timestamp": report.received_timestamp}))?;
}
FileType::VerifiedSubscriberLocationIngestReport => {
let report = VerifiedSubscriberLocationIngestReport::decode(msg)?;
print_json(&json!({
"subscriber_id": report.report.report.subscriber_id,
"carrier_pub_key": report.report.report.carrier_pub_key,
"status": report.status,
"recv timestamp": report.report.received_timestamp}))?;
}
_ => (),
}
}
Expand Down

0 comments on commit b12b889

Please sign in to comment.