refactor: give ownership of app_handle to create_subscription, which runs forever
This commit is contained in:
parent
48267f9af9
commit
832083ac48
1 changed files with 1 additions and 2 deletions
|
@ -22,8 +22,7 @@ fn main() {
|
|||
let app_handle = app.app_handle();
|
||||
|
||||
tokio::spawn(async move {
|
||||
crate::telemetry::subscribe_topics(app_handle.clone(), NTABLE_IP, NTABLE_PORT)
|
||||
.await;
|
||||
crate::telemetry::subscribe_topics(app_handle, NTABLE_IP, NTABLE_PORT).await;
|
||||
});
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue