adsb: use async delay
This commit is contained in:
parent
22132c0038
commit
4e1570b2fd
|
@ -198,7 +198,7 @@ pub fn run(url: &'static str, locations: Locations) -> Receiver<Event> {
|
|||
tx.send(event).await.unwrap();
|
||||
}
|
||||
|
||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue