diff options
| author | Emīls <emils@mullvad.net> | 2020-07-17 15:36:20 +0100 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2020-07-21 10:50:25 +0100 |
| commit | b19967d5d1a30367aeb44ec0d834befd60538fe8 (patch) | |
| tree | afd859cbb23caf31b37a577a6a1c712aea12f512 /mullvad-daemon/src | |
| parent | 4c40147f34fed91410b887de97794fbb1a3bc90f (diff) | |
| download | mullvadvpn-b19967d5d1a30367aeb44ec0d834befd60538fe8.tar.xz mullvadvpn-b19967d5d1a30367aeb44ec0d834befd60538fe8.zip | |
Move Cancellable et al to talpid-core
Diffstat (limited to 'mullvad-daemon/src')
| -rw-r--r-- | mullvad-daemon/src/lib.rs | 6 | ||||
| -rw-r--r-- | mullvad-daemon/src/wireguard.rs | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs index f7755fbf75..3e5ba1dda9 100644 --- a/mullvad-daemon/src/lib.rs +++ b/mullvad-daemon/src/lib.rs @@ -28,10 +28,7 @@ use futures01::{ Future, Stream, }; use log::{debug, error, info, warn}; -use mullvad_rpc::{ - rest::{CancelHandle, Cancellable}, - AccountsProxy, -}; +use mullvad_rpc::AccountsProxy; use mullvad_types::{ account::{AccountData, AccountToken, VoucherSubmission}, endpoint::MullvadEndpoint, @@ -61,6 +58,7 @@ use std::{ #[cfg(target_os = "linux")] use talpid_core::split_tunnel; use talpid_core::{ + future_cancel::{CancelHandle, Cancellable}, mpsc::Sender, tunnel_state_machine::{self, TunnelCommand, TunnelParametersGenerator}, }; diff --git a/mullvad-daemon/src/wireguard.rs b/mullvad-daemon/src/wireguard.rs index 923fc4fb34..9206f97be2 100644 --- a/mullvad-daemon/src/wireguard.rs +++ b/mullvad-daemon/src/wireguard.rs @@ -1,6 +1,6 @@ use crate::{account_history::AccountHistory, DaemonEventSender, InternalDaemonEvent}; use chrono::offset::Utc; -use mullvad_rpc::rest::{CancelHandle, Cancellable, Error as RestError, MullvadRestHandle}; +use mullvad_rpc::rest::{Error as RestError, MullvadRestHandle}; use mullvad_types::account::AccountToken; pub use mullvad_types::wireguard::*; use std::{ @@ -10,6 +10,7 @@ use std::{ }; use talpid_core::{ + future_cancel::{CancelHandle, Cancellable}, future_retry::{retry_future_with_backoff, ExponentialBackoff, Jittered}, mpsc::Sender, }; |
