From 262e22a1edb05a689b5fd7a0a7034e8588c7d6f3 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 21 Nov 2024 16:45:55 +1300 Subject: [PATCH] Fix: When blossom upload fails in any way, make sure to capture the result --- gossip-lib/src/overlord.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossip-lib/src/overlord.rs b/gossip-lib/src/overlord.rs index b9675a9a..a3fb6e6d 100644 --- a/gossip-lib/src/overlord.rs +++ b/gossip-lib/src/overlord.rs @@ -1017,8 +1017,8 @@ impl Overlord { pub async fn blossom_upload(&mut self, pathbuf: PathBuf) -> Result<(), Error> { std::mem::drop(tokio::spawn(async move { - if let Err(e) = Overlord::inner_blossom_upload(pathbuf).await { - tracing::error!("{}", e); + if let Err(e) = Overlord::inner_blossom_upload(pathbuf.clone()).await { + GLOBALS.blossom_uploads.insert(pathbuf, Err(e)); } }));