make instrumentation sync instead of async to avoid concurrency issues
This commit is contained in:
@@ -94,13 +94,9 @@ async fn init_instrumentation() -> tokio::task::JoinHandle<()> {
|
||||
}
|
||||
|
||||
async fn handle_harmony_events() {
|
||||
instrumentation::subscribe("Harmony TUI Logger", async |event| {
|
||||
if let HarmonyEvent::HarmonyFinished = event {
|
||||
return false;
|
||||
};
|
||||
true
|
||||
})
|
||||
.await;
|
||||
instrumentation::subscribe("Harmony TUI Logger", |_| {
|
||||
// TODO: Display events in the TUI
|
||||
});
|
||||
}
|
||||
|
||||
pub struct HarmonyTUI<T: Topology> {
|
||||
|
||||
Reference in New Issue
Block a user