Skip to content

Commit

Permalink
Reduce from 8 to 1 TVU receive socket/thread
Browse files Browse the repository at this point in the history
A single streamer is capable of handling the load, and doing so with a
single thread is more efficient.
  • Loading branch information
steviez committed Apr 23, 2024
1 parent 57ab944 commit cf6c65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,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 {
Expand Down

0 comments on commit cf6c65f

Please sign in to comment.