feat(net): increase session command buffer (#585)

* refactor: unnecessary return

* feat: increase session command buffer to 32
This commit is contained in:
mempirate
2022-12-23 11:24:04 +01:00
committed by GitHub
parent ecbbb8835c
commit e549b29cce
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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,