Skip to content

Commit

Permalink
Fix merge conflicts with emhane/one-req-per-peer-bottleneck
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Feb 22, 2024
2 parents e03ab41 + 9065482 commit 358f3ac
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 125 deletions.
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/net/network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ ethers-middleware = { workspace = true, default-features = false }

enr = { workspace = true, features = ["serde", "rust-secp256k1"] }

# async
futures-test = "0.3.30"

# misc
serial_test.workspace = true
tempfile.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions crates/net/network/src/peers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ pub use reputation::ReputationChangeWeights;
pub use reth_network_api::PeerKind;

/// Maximum number of available slots for outbound sessions.
pub(crate) const DEFAULT_MAX_COUNT_PEERS_OUTBOUND: u32 = 100;
pub const DEFAULT_MAX_COUNT_PEERS_OUTBOUND: u32 = 100;

/// Maximum number of available slots for inbound sessions.
pub(crate) const DEFAULT_MAX_COUNT_PEERS_INBOUND: u32 = 30;
pub const DEFAULT_MAX_COUNT_PEERS_INBOUND: u32 = 30;

/// Maximum number of available slots concurrent outgoing dials.
pub(crate) const DEFAULT_MAX_COUNT_CONCURRENT_DIALS: usize = 10;
pub const DEFAULT_MAX_COUNT_CONCURRENT_DIALS: usize = 10;
Loading

0 comments on commit 358f3ac

Please sign in to comment.