From c9a8be364c00eb591e5d9648a7f89340c003e840 Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Thu, 12 Jan 2023 16:40:58 +0000 Subject: [PATCH] Update gossip/src/contact_info.rs Co-authored-by: Trent Nelson --- gossip/src/contact_info.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gossip/src/contact_info.rs b/gossip/src/contact_info.rs index e885ecd4f44bc0..faef80cbfe08b5 100644 --- a/gossip/src/contact_info.rs +++ b/gossip/src/contact_info.rs @@ -31,6 +31,8 @@ const SOCKET_TAG_TPU_FORWARDS_QUIC: u8 = 8; const SOCKET_TAG_TPU_VOTE: u8 = 9; const SOCKET_TAG_TVU: u8 = 10; const SOCKET_TAG_TVU_FORWARDS: u8 = 11; +#[cfg(test)] +static_assertions::const_assert_eq!(SOCKET_CACHE_SIZE, 12); const SOCKET_CACHE_SIZE: usize = SOCKET_TAG_TVU_FORWARDS as usize + 1usize; #[derive(Debug, Error)]