From 5f1d8c95ebff6e928521ed951962ebc6424cd1f8 Mon Sep 17 00:00:00 2001 From: Stephen Akridge Date: Thu, 14 Jun 2018 16:11:15 -0700 Subject: [PATCH] Fix blob data size --- src/packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet.rs b/src/packet.rs index 051cd45878..7090447c13 100644 --- a/src/packet.rs +++ b/src/packet.rs @@ -21,7 +21,7 @@ pub type BlobRecycler = Recycler; pub const NUM_PACKETS: usize = 1024 * 8; pub const BLOB_SIZE: usize = 64 * 1024; -pub const BLOB_DATA_SIZE: usize = BLOB_SIZE - BLOB_ID_END; +pub const BLOB_DATA_SIZE: usize = BLOB_SIZE - BLOB_HEADER_SIZE; pub const PACKET_DATA_SIZE: usize = 256; pub const NUM_BLOBS: usize = (NUM_PACKETS * PACKET_DATA_SIZE) / BLOB_SIZE;