summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/access_method.rs
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2023-09-26 10:24:10 +0200
committerDavid Lönnhager <david.l@mullvad.net>2023-10-09 14:40:14 +0200
commit7c9de7a434abde196da06c2e2157af71e83caa4e (patch)
tree5ecf6f908780668695917c47657da777bc50d389 /mullvad-daemon/src/access_method.rs
parent2aae80bf5bad388e78daa95cc5d8e79cc712713d (diff)
downloadmullvadvpn-7c9de7a434abde196da06c2e2157af71e83caa4e.tar.xz
mullvadvpn-7c9de7a434abde196da06c2e2157af71e83caa4e.zip
Rename `ApiAccessMethod` to `AccessMethodSetting`
`ApiAccessMethod` was just an app-centric wrapper around `AccessMethod`.
Diffstat (limited to 'mullvad-daemon/src/access_method.rs')
-rw-r--r--mullvad-daemon/src/access_method.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mullvad-daemon/src/access_method.rs b/mullvad-daemon/src/access_method.rs
index dc6c06de06..a3ece35ecb 100644
--- a/mullvad-daemon/src/access_method.rs
+++ b/mullvad-daemon/src/access_method.rs
@@ -26,7 +26,10 @@ impl<L> Daemon<L>
where
L: EventListener + Clone + Send + 'static,
{
- pub async fn add_access_method(&mut self, access_method: ApiAccessMethod) -> Result<(), Error> {
+ pub async fn add_access_method(
+ &mut self,
+ access_method: AccessMethodSetting,
+ ) -> Result<(), Error> {
self.settings
.update(|settings| settings.api_access_methods.append(access_method))
.await