mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 05:50:04 +08:00
refactor(subscription): carry refresh metadata through the download
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user