Fix std error

This commit is contained in:
2026-07-26 05:16:20 +02:00
parent 785bcd9399
commit ec7c3e0c3f
+12 -3
View File
@@ -1,5 +1,6 @@
use std::{
marker::PhantomData,
process::Stdio,
sync::{Arc, Weak},
};
@@ -91,12 +92,18 @@ impl StrategyPair {
Command::new("bash")
.arg(strategy.join("strategy.bash"))
.current_dir(&strategy)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
.spawn()?,
),
risk: Plugin::new(
Command::new("bash")
.arg(strategy.join("risk.bash"))
.current_dir(&strategy)
.arg(risk.join("risk.bash"))
.current_dir(&risk)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
.spawn()?,
),
strategy_manifest: Mutex::new(
@@ -170,7 +177,9 @@ impl StrategyEngine {
.upgrade()
.expect("Failed to upgrade engine (StrategyEngine)");
loop {}
// loop {}
Ok(())
}
pub async fn spawn(self: &Arc<Self>) {