requests to packets function

This commit is contained in:
Anatoly Yakovenko
2018-04-11 17:30:53 -07:00
parent 9c989c46ee
commit 180d8b67e4
2 changed files with 42 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ pub type SharedBlob = Arc<RwLock<Blob>>;
pub type PacketRecycler = Recycler<Packets>;
pub type BlobRecycler = Recycler<Blob>;
const NUM_PACKETS: usize = 1024 * 8;
pub const NUM_PACKETS: usize = 1024 * 8;
const BLOB_SIZE: usize = 64 * 1024;
pub const PACKET_DATA_SIZE: usize = 256;
pub const NUM_BLOBS: usize = (NUM_PACKETS * PACKET_DATA_SIZE) / BLOB_SIZE;