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