Attempting to fix borrowed data in async

This commit is contained in:
Kevin Bost
2025-02-13 21:22:25 -08:00
committed by Caelan
parent 3e7e36d3e7
commit a68ef61111

View File

@@ -245,9 +245,9 @@ impl UpdateManager {
/// Get a list of available remote releases from the package source.
#[cfg(feature = "async")]
pub fn get_release_feed_async(&self) -> JoinHandle<Result<VelopackAssetFeed, Error>> {
pub fn get_release_feed_async(&self, staged_user_id: String) -> JoinHandle<Result<VelopackAssetFeed, Error>> {
let self_clone = self.clone();
async_std::task::spawn_blocking(move || self_clone.get_release_feed())
async_std::task::spawn_blocking(move || self_clone.get_release_feed(staged_user_id.as_str()))
}
/// Checks for updates, returning None if there are none available. If there are updates available, this method will return an