diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-03-15 23:32:54 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-03-18 18:58:15 +0100 |
| commit | a63dfe58b32e9d450c8a744abde08c33aed172e9 (patch) | |
| tree | c4053cb068f22ac86a1b4fedc984b6ebabfde99c | |
| parent | afba15832ad04d402264866e541d5b25bed56f6d (diff) | |
| download | mullvadvpn-a63dfe58b32e9d450c8a744abde08c33aed172e9.tar.xz mullvadvpn-a63dfe58b32e9d450c8a744abde08c33aed172e9.zip | |
Make burst guard public
| -rw-r--r-- | talpid-routing/src/debounce.rs | 1 | ||||
| -rw-r--r-- | talpid-routing/src/lib.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/talpid-routing/src/debounce.rs b/talpid-routing/src/debounce.rs index fe51447624..59ac74f4b3 100644 --- a/talpid-routing/src/debounce.rs +++ b/talpid-routing/src/debounce.rs @@ -28,6 +28,7 @@ enum BurstGuardEvent { } impl BurstGuard { + /// Create a new burst guard pub fn new<F: Fn() + Send + 'static>( buffer_period: Duration, longest_buffer_period: Duration, diff --git a/talpid-routing/src/lib.rs b/talpid-routing/src/lib.rs index f15489fcb6..684f98a262 100644 --- a/talpid-routing/src/lib.rs +++ b/talpid-routing/src/lib.rs @@ -6,7 +6,8 @@ use ipnetwork::IpNetwork; use std::{fmt, net::IpAddr}; #[cfg(any(target_os = "windows", target_os = "macos"))] -mod debounce; +/// Burst guard +pub mod debounce; #[cfg(target_os = "windows")] #[path = "windows/mod.rs"] |
