WIP
This commit is contained in:
parent
3b6971095c
commit
cac16b1e7c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,6 @@ async fn get_fmspc_list() -> Vec<Fmspc> {
|
||||||
.text()
|
.text()
|
||||||
.await
|
.await
|
||||||
.expect("could not read https response");
|
.expect("could not read https response");
|
||||||
println!("{body}");
|
|
||||||
let fmspc_data: Vec<Value> = serde_json::from_str(&body).expect("could not convert to JSON");
|
let fmspc_data: Vec<Value> = serde_json::from_str(&body).expect("could not convert to JSON");
|
||||||
let mut fmspc_list: Vec<Fmspc> = Vec::new();
|
let mut fmspc_list: Vec<Fmspc> = Vec::new();
|
||||||
for item in fmspc_data.iter() {
|
for item in fmspc_data.iter() {
|
||||||
|
@ -50,6 +49,7 @@ async fn upsert_tcbinfo() -> Result<(), &'static str> {
|
||||||
let fmspc_list = get_fmspc_list().await;
|
let fmspc_list = get_fmspc_list().await;
|
||||||
for fmspc in fmspc_list {
|
for fmspc in fmspc_list {
|
||||||
let tcbinfo = get_tcbinfo(fmspc.clone(), "standard".to_string()).await;
|
let tcbinfo = get_tcbinfo(fmspc.clone(), "standard".to_string()).await;
|
||||||
|
println!("{tcbinfo:?}");
|
||||||
let store_entry = &store[&fmspc];
|
let store_entry = &store[&fmspc];
|
||||||
if *store_entry != tcbinfo {
|
if *store_entry != tcbinfo {
|
||||||
println!("updating local TCBInfo for FMSPC: {fmspc}");
|
println!("updating local TCBInfo for FMSPC: {fmspc}");
|
||||||
|
|
Loading…
Reference in a new issue