refactor(peer): split bulk request dispatch

Move file-chunk and Stream Install branches into focused helpers so the new admission path remains within the workspace's strict Clippy limits without changing request behavior.

Test Plan:
- just clippy
- git diff --check
This commit is contained in:
ddidderr committed 2026-09-12 12:59:05 +02:00
1 parent b3174deabf
commit 01d92b1922
2 files changed
+68 -36

No files matched your search

+1 -2
View File
@@ -430,8 +430,7 @@ async fn run_server_body(
if !has_child_capacity(connection_tasks.len(), MAX_ESTABLISHED_CONNECTIONS) {
log::warn!(
"Closing excess peer connection from {remote_addr} at application limit {}",
MAX_ESTABLISHED_CONNECTIONS,
"Closing excess peer connection from {remote_addr} at application limit {MAX_ESTABLISHED_CONNECTIONS}",
);
connection.close(application::Error::UNKNOWN);
continue;