Skip to content

Commit

Permalink
Fix: When blossom upload fails in any way, make sure to capture the r…
Browse files Browse the repository at this point in the history
…esult
  • Loading branch information
mikedilger committed Nov 21, 2024
1 parent 4334441 commit 262e22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gossip-lib/src/overlord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}));

Expand Down

0 comments on commit 262e22a

Please sign in to comment.