Improved reloading
This commit is contained in:
@@ -20,18 +20,5 @@ async fn main() -> tokio::io::Result<()> {
|
||||
terminal_server??;
|
||||
broadcaster??;
|
||||
|
||||
let strategy = engine.strategy.strategy_handle.lock().await.take();
|
||||
let risk = engine.strategy.risk_handle.lock().await.take();
|
||||
|
||||
drop(engine);
|
||||
|
||||
if let Some(strategy) = strategy {
|
||||
strategy.into_future().await??;
|
||||
}
|
||||
|
||||
if let Some(risk) = risk {
|
||||
risk.into_future().await??;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user