mirror of
https://github.com/aphrody-labs/mullvadvpn-app.git
synced 2026-10-17 12:56:19 +00:00
Remove ApiEndpointUpdateHandler
Previously, the `mullvad-api` would tell the `mullvad-daemon` that it wanted a new API endpoint by calling a certain callback (`ApiEndpointUpdateCallback`), which would asynchronously resolve a new API endpoint and tell the daemon to punch an appropriate hole in the firewall for that particular endpoint before the `mullvad-api` crate would consume it. The logic of the callback can be moved inside `AccessModeSelector`, which simplifies the contract between `mullvad-daemon` and `mullvad-api` somewhat.
This commit is contained in:
1 parent
10c990ee1d
commit
0dbebfd86b
9 files changed
+41
-138
No files matched your search
@@ -165,7 +165,6 @@ async fn remove_device() -> Result<(), Error> {
|
||||
ApiConnectionMode::try_from_cache(&cache_path)
|
||||
.await
|
||||
.into_repeat(),
|
||||
|_| async { true },
|
||||
)
|
||||
.await,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user