Fix cooldown display
This commit is contained in:
@@ -59,7 +59,7 @@ impl StrategyEngine {
|
||||
Arc::new(self)
|
||||
}
|
||||
|
||||
pub async fn run_strategy(&self) -> tokio::io::Result<()> {
|
||||
pub async fn run_strategy(&self) -> anyhow::Result<()> {
|
||||
let engine = self
|
||||
.engine
|
||||
.upgrade()
|
||||
@@ -157,8 +157,6 @@ impl StrategyEngine {
|
||||
Some(RiskMessage::Reject { reason }) => {}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn spawn(self: &Arc<Self>) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ pub mod store;
|
||||
pub mod terminal;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> tokio::io::Result<()> {
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let engine = engine::Engine::new().await?;
|
||||
|
||||
let terminal_server = engine.spawn_terminal_server().await;
|
||||
|
||||
@@ -259,7 +259,7 @@ impl Formatted for Strategy {
|
||||
),
|
||||
Triple(
|
||||
&format!(
|
||||
"\x1b[96m{:?}\x1b[0m (\x1b[90m{:?} rec\x1b[0m)",
|
||||
"\x1b[96m{}\x1b[0m (\x1b[90m{} rec\x1b[0m)",
|
||||
self.cooldown, self.risk.cooldown
|
||||
),
|
||||
&format!("\x1b[96m{:?}\x1b[0m", self.strategy.author),
|
||||
|
||||
Reference in New Issue
Block a user