Skip to content

Commit

Permalink
fixup: Docs and strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Apr 10, 2024
1 parent dd48d24 commit 199a2cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mullvad-daemon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ pub enum DaemonCommand {
SetApiAccessMethod(ResponseTx<(), Error>, mullvad_types::access_method::Id),
/// Edit an API access method
UpdateApiAccessMethod(ResponseTx<(), Error>, AccessMethodSetting),
/// Remove all custom API access methods
ClearCustomApiAccessMethods(ResponseTx<(), Error>),
/// Get the currently used API access method
GetCurrentAccessMethod(ResponseTx<AccessMethodSetting, Error>),
Expand Down Expand Up @@ -2489,7 +2490,7 @@ where
.clear_custom_api_access_methods()
.await
.map_err(Error::AccessMethodError);
Self::oneshot_send(tx, result, "update_api_access_method response");
Self::oneshot_send(tx, result, "clear_custom_api_access_methods response");
}

fn on_get_current_api_access_method(&mut self, tx: ResponseTx<AccessMethodSetting, Error>) {
Expand Down
2 changes: 1 addition & 1 deletion mullvad-daemon/src/management_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ impl ManagementService for ManagementServiceImpl {
}

async fn clear_custom_api_access_methods(&self, _: Request<()>) -> ServiceResult<()> {
log::debug!("get_current_api_access_method");
log::debug!("clear_custom_api_access_methods");
let (tx, rx) = oneshot::channel();
self.send_command_to_daemon(DaemonCommand::ClearCustomApiAccessMethods(tx))?;
self.wait_for_result(rx)
Expand Down
1 change: 1 addition & 0 deletions mullvad-management-interface/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ impl MullvadProxyClient {
.map(drop)
}

/// Remove all custom API access methods.
pub async fn clear_custom_access_methods(&mut self) -> Result<()> {
self.0
.clear_custom_api_access_methods(())
Expand Down
2 changes: 1 addition & 1 deletion mullvad-types/src/access_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Settings {
updated
}

/// Clear all custom access methods.
/// Remove all custom access methods.
pub fn clear_custom(&mut self) {
self.custom.clear();
self.ensure_consistent_state();
Expand Down

0 comments on commit 199a2cb

Please sign in to comment.