From 368f1a0d87eee010875908c853e7049cb7ee8f3a Mon Sep 17 00:00:00 2001 From: steviez Date: Tue, 23 Apr 2024 09:21:04 -0500 Subject: [PATCH] Reduce from 8 to 1 TVU receive socket/thread A single streamer is capable of handling the load, and doing so with a single thread is more efficient. --- gossip/src/cluster_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index 9f23169c55f512..42dc76d0b25f1e 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -126,7 +126,7 @@ const MIN_NUM_STAKED_NODES: usize = 500; // Must have at least one socket to monitor the TVU port // The unsafes are safe because we're using fixed, known non-zero values pub const MINIMUM_NUM_TVU_SOCKETS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(1) }; -pub const DEFAULT_NUM_TVU_SOCKETS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(8) }; +pub const DEFAULT_NUM_TVU_SOCKETS: NonZeroUsize = MINIMUM_NUM_TVU_SOCKETS; #[derive(Debug, PartialEq, Eq, Error)] pub enum ClusterInfoError {