updater #1

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

@ -148,7 +148,7 @@ async fn handle_update_vm_requests(
while let Some(update_vm) = req.recv().await { while let Some(update_vm) = req.recv().await {
let confirmation = UpdateVmResp { let confirmation = UpdateVmResp {
uuid: update_vm.uuid, uuid: update_vm.uuid,
error: "No errors yet".to_string(), error: "".to_string(),
}; };
ghe0 marked this conversation as resolved Outdated
Outdated
Review

The timestamp must be set from the brain, for security reasons.
Also, this does not require chrono.

Check this:

src/data.rs Line 191 in 7905c1c165
created_at: format!("{:?}", std::time::SystemTime::now()),

The timestamp must be set from the brain, for security reasons. Also, this does not require chrono. Check this: https://gitea.detee.cloud/ghe0/brain-mock/src/commit/7905c1c165ca6911ad8f3d9f83ff160b2d9dc9bb/src/data.rs#L191
info!("Sending UpdateVmResp: {confirmation:?}"); info!("Sending UpdateVmResp: {confirmation:?}");
let _ = resp.send(confirmation).await; let _ = resp.send(confirmation).await;