From e0db9861bcf7194c29888c28184785f969199c38 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sat, 14 Dec 2019 13:37:51 +0100 Subject: Added profiler feature --- src/wireguard/router/inbound.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wireguard/router/inbound.rs') diff --git a/src/wireguard/router/inbound.rs b/src/wireguard/router/inbound.rs index 5a27c95..db6d3f3 100644 --- a/src/wireguard/router/inbound.rs +++ b/src/wireguard/router/inbound.rs @@ -1,3 +1,4 @@ +use super::constants::MAX_INORDER_CONSUME; use super::device::DecryptionState; use super::device::Device; use super::messages::TransportHeader; @@ -185,6 +186,7 @@ pub fn sequential>( // handle message from the peers inbound queue device.run_inbound.run(|peer| { - peer.inbound.handle(|body| work(&peer, body)); + peer.inbound + .handle(|body| work(&peer, body), MAX_INORDER_CONSUME) }); } -- cgit v1.2.3-59-g8ed1b