summaryrefslogtreecommitdiffhomepage
path: root/mullvad-setup/src
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-setup/src')
-rw-r--r--mullvad-setup/src/main.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/mullvad-setup/src/main.rs b/mullvad-setup/src/main.rs
index eb09513a1f..8b9df4b154 100644
--- a/mullvad-setup/src/main.rs
+++ b/mullvad-setup/src/main.rs
@@ -173,14 +173,9 @@ async fn remove_wireguard_key() -> Result<(), Error> {
if let Some(token) = settings.get_account_token() {
if let Some(wg_data) = settings.get_wireguard() {
- let mut rpc_runtime = MullvadRpcRuntime::with_cache(
- tokio::runtime::Handle::current(),
- None,
- &cache_path,
- false,
- )
- .await
- .map_err(Error::RpcInitializationError)?;
+ let mut rpc_runtime = MullvadRpcRuntime::with_cache(None, &cache_path, false)
+ .await
+ .map_err(Error::RpcInitializationError)?;
let mut key_proxy =
mullvad_rpc::WireguardKeyProxy::new(rpc_runtime.mullvad_rest_handle());
retry_future_n(