aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/queue.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2020-02-16 18:12:43 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2020-02-16 18:12:43 +0100
commit106c5e8b5c865c8396f824f4f5aa14d1bf0952b1 (patch)
tree68101553c62d301921b84776a9e18fc627c7a731 /src/wireguard/queue.rs
parentWork on reducing context switches (diff)
downloadwireguard-rs-106c5e8b5c865c8396f824f4f5aa14d1bf0952b1.tar.xz
wireguard-rs-106c5e8b5c865c8396f824f4f5aa14d1bf0952b1.zip
Work on router optimizationsrouter
Diffstat (limited to 'src/wireguard/queue.rs')
-rw-r--r--src/wireguard/queue.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wireguard/queue.rs b/src/wireguard/queue.rs
index 75b9104..eea1ccf 100644
--- a/src/wireguard/queue.rs
+++ b/src/wireguard/queue.rs
@@ -1,6 +1,7 @@
-use crossbeam_channel::{bounded, Receiver, Sender};
use std::sync::Mutex;
+use crossbeam_channel::{bounded, Receiver, Sender};
+
pub struct ParallelQueue<T> {
queue: Mutex<Option<Sender<T>>>,
}