clean project from comments
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
//! Virtual Device for receiving packets from tun
|
||||
|
||||
use std::{
|
||||
marker::PhantomData,
|
||||
mem,
|
||||
@@ -119,9 +117,6 @@ impl phy::TxToken for VirtTxToken<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
// Maximum number of TokenBuffer cached globally.
|
||||
//
|
||||
// Each of them has capacity 65536 (defined in tun/mod.rs), so 64 * 65536 = 4MB.
|
||||
const TOKEN_BUFFER_LIST_MAX_SIZE: usize = 64;
|
||||
static TOKEN_BUFFER_LIST: LazyLock<Mutex<Vec<BytesMut>>> = LazyLock::new(|| Mutex::new(Vec::new()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user