updater #1

Merged
ghe0 merged 13 commits from updater into master 2024-12-25 23:00:16 +00:00
Showing only changes of commit dc8977e89b - Show all commits

@ -186,10 +186,16 @@ async fn main() -> Result<()> {
} }
} }
let nodes = get_node_list(client.clone()).await?;
for node in nodes {
let contracts = list_contracts(client.clone()).await?; let contracts = list_contracts(client.clone()).await?;
for contract in contracts { for contract in contracts {
if let Err(e) = update_vm_request(client.clone(), &use_default_string(), &contract.uuid).await { if let Err(e) = update_vm_request(client.clone(), &node.node_pubkey, &contract.uuid).await {
log::error!("Received error when updating VM {}: {e:?}", &contract.uuid); log::error!(
"Received error when updating VM on node {}: {e:?}",
&node.node_pubkey
);
}
} }
} }