Gate sync peer selection on per-protocol concurrent-request limit (#9456)

Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Lion - dapplion
2026-06-21 18:34:29 +02:00
committed by GitHub
parent 10568b139b
commit b05badb5f2
3 changed files with 59 additions and 77 deletions

View File

@@ -46,7 +46,7 @@ mod response_limiter;
mod self_limiter;
// Maximum number of concurrent requests per protocol ID that a client may issue.
const MAX_CONCURRENT_REQUESTS: usize = 2;
pub const MAX_CONCURRENT_REQUESTS: usize = 2;
/// Composite trait for a request id.
pub trait ReqId: Send + 'static + std::fmt::Debug + Copy + Clone {}