From 70bf3b5e73c113fb95161ae9ddb4a66d26238689 Mon Sep 17 00:00:00 2001 From: ghe0 Date: Thu, 6 Mar 2025 01:30:51 +0200 Subject: [PATCH] pass update error from daemon to CLI --- src/data.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data.rs b/src/data.rs index 13e02e0..17add83 100644 --- a/src/data.rs +++ b/src/data.rs @@ -661,6 +661,11 @@ impl BrainData { return; } }; + if let Err(e) = update_vm_req.1.send(update_vm_resp.clone()) { + log::warn!( + "CLI RX dropped before receiving UpdateVMResp {update_vm_resp:?}. Error: {e:?}" + ); + } if update_vm_resp.error != "" { return; } @@ -697,11 +702,6 @@ impl BrainData { update_vm_resp.error = "VM Contract not found.".to_string(); } } - if let Err(e) = update_vm_req.1.send(update_vm_resp.clone()) { - log::warn!( - "CLI RX dropped before receiving UpdateVMResp {update_vm_resp:?}. Error: {e:?}" - ); - } } pub async fn submit_newvm_req(