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 /test/test-manager/src | |
| 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 'test/test-manager/src')
| -rw-r--r-- | test/test-manager/src/tests/account.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test-manager/src/tests/account.rs b/test/test-manager/src/tests/account.rs index 78eb42adc4..8b30f85768 100644 --- a/test/test-manager/src/tests/account.rs +++ b/test/test-manager/src/tests/account.rs @@ -237,10 +237,7 @@ pub async fn new_device_client() -> DevicesProxy { let api = mullvad_api::Runtime::new(tokio::runtime::Handle::current()) .expect("failed to create api runtime"); let rest_handle = api - .mullvad_rest_handle( - mullvad_api::proxy::ApiConnectionMode::Direct.into_repeat(), - |_| async { true }, - ) + .mullvad_rest_handle(mullvad_api::proxy::ApiConnectionMode::Direct.into_repeat()) .await; DevicesProxy::new(rest_handle) } |
