Fix std error
This commit is contained in:
@@ -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>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user