diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2023-12-22 13:03:25 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-01-08 09:04:49 +0100 |
| commit | 0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db (patch) | |
| tree | 2ac0841fce76224ea381df274116f46b267ede3e /mullvad-setup | |
| parent | 10c990ee1d296970ecd60fbde0ce147ca922ec99 (diff) | |
| download | mullvadvpn-0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db.tar.xz mullvadvpn-0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db.zip | |
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.
Diffstat (limited to 'mullvad-setup')
| -rw-r--r-- | mullvad-setup/src/main.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mullvad-setup/src/main.rs b/mullvad-setup/src/main.rs index bcae459442..f89baeb049 100644 --- a/mullvad-setup/src/main.rs +++ b/mullvad-setup/src/main.rs @@ -165,7 +165,6 @@ async fn remove_device() -> Result<(), Error> { ApiConnectionMode::try_from_cache(&cache_path) .await .into_repeat(), - |_| async { true }, ) .await, ); |
