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::{ use std::{
marker::PhantomData, marker::PhantomData,
process::Stdio,
sync::{Arc, Weak}, sync::{Arc, Weak},
}; };
@@ -91,12 +92,18 @@ impl StrategyPair {
Command::new("bash") Command::new("bash")
.arg(strategy.join("strategy.bash")) .arg(strategy.join("strategy.bash"))
.current_dir(&strategy) .current_dir(&strategy)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
.spawn()?, .spawn()?,
), ),
risk: Plugin::new( risk: Plugin::new(
Command::new("bash") Command::new("bash")
.arg(strategy.join("risk.bash")) .arg(risk.join("risk.bash"))
.current_dir(&strategy) .current_dir(&risk)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
.spawn()?, .spawn()?,
), ),
strategy_manifest: Mutex::new( strategy_manifest: Mutex::new(
@@ -170,7 +177,9 @@ impl StrategyEngine {
.upgrade() .upgrade()
.expect("Failed to upgrade engine (StrategyEngine)"); .expect("Failed to upgrade engine (StrategyEngine)");
loop {} // loop {}
Ok(())
} }
pub async fn spawn(self: &Arc<Self>) { pub async fn spawn(self: &Arc<Self>) {