refactor(subscription): carry refresh metadata through the download

This commit is contained in:
Tunglies
2026-12-04 01:48:32 +08:00
parent 59762520cc
commit 28aefde36f
2 changed files with 23 additions and 38 deletions
+1 -2
View File
@@ -308,13 +308,12 @@ fn check_refresh_source(current: &PrfItem, url: &str, file: Option<&String>) ->
pub(crate) async fn save_remote_refresh(
uid: &str,
url: &str,
url: String,
file: Option<String>,
downloaded: DownloadedSubscription,
options: Option<PrfOption>,
) -> Result<()> {
let uid = uid.to_owned();
let url = url.to_owned();
// Dropping the caller must not separate an issued disk write from its Draft publication.
tokio::spawn(async move {
let _profile_write = PROFILE_WRITE_LOCK.lock().await;