fix export path

This commit is contained in:
2026-05-04 15:26:22 +08:00
parent cc4e6f0615
commit 8d4b6e79f3
5 changed files with 25 additions and 64 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
use crate::config::{ClientConfig, Profile};
use crate::queue::SharedQueue;
use crate::signal::Signal;
use crate::task::{AtomicCounters, AutoSaveManifest, post_run, run_main, run_side};
use crate::task::{AtomicCounters, AutoSaveManifest, pre_run, run_main, run_side};
use common::strings::REGION_NOT_FOUND;
use common::updater::DownloadTask;
use communicator::{ClientManager, Identity, TunnelEndpoint, TunnelListener, connect_tunnel};
@@ -233,7 +233,7 @@ async fn main() -> anyhow::Result<()> {
if cancel_token.is_cancelled() {
return;
}
let sync_id = post_run(client.clone(), profile.clone(), tasks.clone(), cnt.clone()).await;
let sync_id = pre_run(client.clone(), profile.clone(), tasks.clone(), cnt.clone()).await;
let sig = signal.pick().await;
let result = match sync_id {
Ok(Some(id)) => {
@@ -328,7 +328,7 @@ async fn main() -> anyhow::Result<()> {
if cancel_token.is_cancelled() {
return;
}
let sync_id = post_run(client.clone(), profile.clone(), tasks.clone(), cnt.clone()).await;
let sync_id = pre_run(client.clone(), profile.clone(), tasks.clone(), cnt.clone()).await;
let sig = signal.pick().await;
let result = match sync_id {
Ok(Some(id)) => {
+1 -1
View File
@@ -15,7 +15,7 @@ use tokio::sync::{RwLock, Semaphore};
use tokio::task::JoinSet;
use tokio_util::sync::CancellationToken;
pub async fn post_run(
pub async fn pre_run(
client: Arc<ClientManager>,
profile: Arc<(String, Arc<RwLock<Profile>>)>,
queue: SharedQueue<DownloadTask>,