Skip to content

Commit a1eb2a7

Browse files
author
e1732a364fed
committed
mi
1 parent 5c71f7d commit a1eb2a7

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

crates/ruci-cmd/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@ fn log_setup(args: Args) -> Option<tracing_appender::non_blocking::WorkerGuard>
694694

695695
debug!("possible out maps: {}", all_possible_out_maps.join(", "));
696696

697+
info!("Running With Mode: {:?}", args.mode);
698+
info!("Engine Config file is: {}", args.config);
699+
697700
guard
698701
}
699702

crates/ruci-cmd/src/mode/chain/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ pub async fn get_config_file(
1919
let get_file_f = || -> anyhow::Result<_> {
2020
let r = data_source.get_file_content(Path::new(&file_name));
2121

22-
// if r.is_err() {
23-
// debug!("get file err, will use default file name, err: {r:?}");
24-
// r = data_source.get_file_content(Path::new(DEFAULT_LUA_CONFIG_FILE_NAME));
25-
// }
26-
27-
r.context("get_config_file data_source.get_file_content failed")
22+
r.context(format!(
23+
"get_config_file data_source.get_file_content failed, file_name: {file_name}"
24+
))
2825
};
2926

3027
//获取到文件的 bytes, 或通过下载 或读取文件. 若 in_memory 给出则下载的文件不持久化

rucimp/src/modes/chain/engine.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ impl Engine {
257257
Ok(hv)
258258
}
259259

260+
/// the real function to run the proxy progress.
260261
pub async fn start_with_tasks(
261262
&self,
262263
) -> anyhow::Result<
@@ -303,7 +304,7 @@ impl Engine {
303304
);
304305
index += 1;
305306

306-
let t2 = Engine::loop_in_to_out(
307+
let t2 = Engine::loop_relay(
307308
self.global_data.clone(),
308309
out_rx,
309310
out_selector.clone(),
@@ -322,7 +323,7 @@ impl Engine {
322323
Ok(tasks)
323324
}
324325

325-
async fn loop_in_to_out(
326+
async fn loop_relay(
326327
global_data: GlobalData,
327328

328329
mut rx: Receiver<fold::FoldResult>,

0 commit comments

Comments
 (0)