this issue made me almost change my career, I need more sleep prob

This commit is contained in:
Ramil_Algayev 2024-12-26 00:35:25 +04:00
parent 1d0b7157c7
commit dc8977e89b

@ -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
);
}
} }
} }