formatting

This commit is contained in:
Giulio De Pasquale 2021-01-27 17:04:37 +00:00
parent 6ed510f2cc
commit dd3786486c

View File

@ -326,17 +326,14 @@ impl OrderManagerHandle {
loop { loop {
tokio::select! { tokio::select! {
opt_msg= manager.receiver.recv() => { opt_msg = manager.receiver.recv() => {
if let Some(msg) = opt_msg { if let Some(msg) = opt_msg {
manager.handle_message(msg).await.unwrap() manager.handle_message(msg).await.unwrap()
}
} },
_ = sleep.tick() => {
manager.update().await.unwrap();
}, }
_ = sleep.tick() => {
manager.update().await.unwrap();
}
} }
} }
} }