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)]