diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-10 18:17:48 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-10 18:17:48 +0100 |
commit | 656679638750f84d1c8b75d8c44974ed45d36092 (patch) | |
tree | 9118055a5333afc6b1c3df3e77d315e55e5f8023 /src/wireguard/peer.rs | |
parent | Formatting (diff) | |
download | wireguard-rs-656679638750f84d1c8b75d8c44974ed45d36092.tar.xz wireguard-rs-656679638750f84d1c8b75d8c44974ed45d36092.zip |
Remove crossbeam dependency
Diffstat (limited to '')
-rw-r--r-- | src/wireguard/peer.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wireguard/peer.rs b/src/wireguard/peer.rs index 04622fd..448db96 100644 --- a/src/wireguard/peer.rs +++ b/src/wireguard/peer.rs @@ -1,6 +1,5 @@ use super::router; use super::timers::{Events, Timers}; -use super::HandshakeJob; use super::tun::Tun; use super::udp::UDP; @@ -14,7 +13,6 @@ use std::time::{Instant, SystemTime}; use spin::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard}; -use crossbeam_channel::Sender; use x25519_dalek::PublicKey; pub struct Peer<T: Tun, B: UDP> { @@ -33,7 +31,6 @@ pub struct PeerInner<T: Tun, B: UDP> { pub walltime_last_handshake: Mutex<Option<SystemTime>>, pub last_handshake_sent: Mutex<Instant>, // instant for last handshake pub handshake_queued: AtomicBool, // is a handshake job currently queued for the peer? - pub queue: Mutex<Sender<HandshakeJob<B::Endpoint>>>, // handshake queue // stats and configuration pub pk: PublicKey, // public key, DISCUSS: avoid this. TODO: remove |