Skip to content

Commit

Permalink
Require successful VSS storage
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Sep 29, 2023
1 parent 6f573f7 commit a4a3312
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions mutiny-core/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,7 @@ pub trait MutinyStorage: Clone + Sized + 'static {
}
};

let (local_res, vss_res) = futures::join!(local_fut, vss_fut);

// make sure local storage succeeded
local_res?;

// log error if VSS failed, if we have local version it should be okay
if let Err(e) = vss_res {
// unwrap safe, can only get error if we have a client
log_error!(
self.vss_client().unwrap().logger,
"Failed to put object in VSS: {e}"
);
}
futures::try_join!(local_fut, vss_fut)?;

Ok(())
}
Expand Down

0 comments on commit a4a3312

Please sign in to comment.