Skip to content

Commit 85f8f63

Browse files
committed
traffic-monitor 0.1.5: use a bounded channel
1 parent 4b3e74b commit 85f8f63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client_libraries/traffic_monitor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nullnet-traffic-monitor"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2024"
55
authors= ["Giuliano Bellini <[email protected]>"]
66
repository = "https://github.com/NullNet-ai/libguard"

client_libraries/traffic_monitor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct PacketInfo {
3333
/// A receiver channel for receiving captured packets
3434
#[must_use]
3535
pub fn monitor_devices(monitor_config: &MonitorConfig) -> Receiver<PacketInfo> {
36-
let (tx, rx) = async_channel::unbounded();
36+
let (tx, rx) = async_channel::bounded(10_000);
3737

3838
let bpf_program = bpf_program(&monitor_config.addr);
3939
for device in Device::list().into_iter().flatten() {

0 commit comments

Comments
 (0)