reuses old TVU-forwards socket tag for TVU over QUIC (#32828)
The commit revises socket tag for TVU over QUIC to reuse old TVU-forwards socket tag. This avoids gaps in socket tags which wastes space in ContactInfo.cache. The change is backward compatible because TVU-forwards is not used any more and TVU over QUIC is not released yet.
This commit is contained in:
parent
e316db2ab4
commit
35ed7122f6
|
@ -35,8 +35,8 @@ const SOCKET_TAG_TPU_FORWARDS_QUIC: u8 = 7;
|
|||
const SOCKET_TAG_TPU_QUIC: u8 = 8;
|
||||
const SOCKET_TAG_TPU_VOTE: u8 = 9;
|
||||
const SOCKET_TAG_TVU: u8 = 10;
|
||||
const SOCKET_TAG_TVU_QUIC: u8 = 12;
|
||||
const_assert_eq!(SOCKET_CACHE_SIZE, 13);
|
||||
const SOCKET_TAG_TVU_QUIC: u8 = 11;
|
||||
const_assert_eq!(SOCKET_CACHE_SIZE, 12);
|
||||
const SOCKET_CACHE_SIZE: usize = SOCKET_TAG_TVU_QUIC as usize + 1usize;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
|
|
Loading…
Reference in New Issue