aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/workers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/router/workers.rs')
-rw-r--r--src/router/workers.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/router/workers.rs b/src/router/workers.rs
index e79502f..537f238 100644
--- a/src/router/workers.rs
+++ b/src/router/workers.rs
@@ -141,10 +141,7 @@ pub fn worker_outbound<C: Callbacks, T: Tun, B: Bind>(
}
}
-pub fn worker_parallel<C: Callbacks, T: Tun, B: Bind>(
- device: Arc<DeviceInner<C, T, B>>,
- receiver: Receiver<JobParallel>,
-) {
+pub fn worker_parallel(receiver: Receiver<JobParallel>) {
loop {
// fetch next job
let (tx, mut buf) = match receiver.recv() {