mirror of
https://github.com/Bluemangoo/sekai-unpacker.git
synced 2026-09-20 16:26:51 +08:00
fix export path
This commit is contained in:
+3
-3
@@ -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
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user