summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2022-03-31 13:53:34 +0100
committerEmīls <emils@mullvad.net>2022-04-19 13:52:30 +0100
commit96f33fdfd818906545e7129297bd70428083e2ba (patch)
tree1f984286b76100fdf50e978beae6e7705726c8ec /mullvad-api/src
parent29c143bdda053aafb5aecb003c217b50451ce98b (diff)
downloadmullvadvpn-96f33fdfd818906545e7129297bd70428083e2ba.tar.xz
mullvadvpn-96f33fdfd818906545e7129297bd70428083e2ba.zip
Track API calls in device manager
Instead of blocking the device manager on API calls, the API calls are now serviced concurrently, allowing users of the device manager to retrieve data without blocking.
Diffstat (limited to 'mullvad-api/src')
-rw-r--r--mullvad-api/src/rest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs
index c3f48b3e8c..4297bd92ed 100644
--- a/mullvad-api/src/rest.rs
+++ b/mullvad-api/src/rest.rs
@@ -244,7 +244,7 @@ pub struct RequestServiceHandle {
impl RequestServiceHandle {
/// Resets the corresponding RequestService, dropping all in-flight requests.
- pub async fn reset(&self) {
+ pub fn reset(&self) {
let _ = self.tx.unbounded_send(RequestCommand::Reset);
}