From 9d5ea6c31b45276acdeab536dc81c62ff7615f23 Mon Sep 17 00:00:00 2001 From: bitful-pannul <109035169+bitful-pannul@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:47:12 -0300 Subject: [PATCH] app_store: hotfix (#47) --- modules/app_store/app_store/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/app_store/app_store/src/lib.rs b/modules/app_store/app_store/src/lib.rs index 563b635b..4ce9a7b9 100644 --- a/modules/app_store/app_store/src/lib.rs +++ b/modules/app_store/app_store/src/lib.rs @@ -326,6 +326,10 @@ fn handle_local_request( process: ProcessId::from_str("vfs:sys:uqbar")?, }; + let Some(mut payload) = get_payload() else { + return Err(anyhow::anyhow!("no payload")); + }; + Request::new() .target(vfs_address.clone())? .ipc_bytes(serde_json::to_vec(&kt::VfsRequest { @@ -334,9 +338,6 @@ fn handle_local_request( })?) .send_and_await_response(5)??; - let Some(mut payload) = get_payload() else { - return Err(anyhow::anyhow!("no payload")); - }; // produce the version hash for this new package let mut hasher = sha2::Sha256::new(); hasher.update(&payload.bytes);