updater #1
| @ -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?; | ||||
|         for contract in contracts { | ||||
|         if let Err(e) = update_vm_request(client.clone(), &use_default_string(), &contract.uuid).await { | ||||
|             log::error!("Received error when updating VM {}: {e:?}", &contract.uuid); | ||||
|             if let Err(e) = update_vm_request(client.clone(), &node.node_pubkey, &contract.uuid).await { | ||||
|                 log::error!( | ||||
|                     "Received error when updating VM on node {}: {e:?}", | ||||
|                     &node.node_pubkey | ||||
|                 ); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user