mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
feat(net): increase session command buffer (#585)
* refactor: unnecessary return * feat: increase session command buffer to 32
This commit is contained in:
@@ -25,7 +25,7 @@ impl Default for SessionsConfig {
|
||||
SessionsConfig {
|
||||
// This should be sufficient to slots for handling commands sent to the session task,
|
||||
// since the manager is the sender.
|
||||
session_command_buffer: 10,
|
||||
session_command_buffer: 32,
|
||||
// This should be greater since the manager is the receiver. The total size will be
|
||||
// `buffer + num sessions`. Each session can therefor fit at least 1 message in the
|
||||
// channel. The buffer size is additional capacity. The channel is always drained on
|
||||
|
||||
@@ -311,7 +311,7 @@ impl SessionManager {
|
||||
Poll::Ready(None) => unreachable!("Manager holds both channel halves."),
|
||||
Poll::Ready(Some(event)) => event,
|
||||
};
|
||||
return match event {
|
||||
match event {
|
||||
PendingSessionEvent::Established {
|
||||
session_id,
|
||||
remote_addr,
|
||||
|
||||
Reference in New Issue
Block a user