Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send more than one request per peer at a time #779

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions lib/src/sync/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ impl<TRq, TSrc, TBl> AllSync<TRq, TSrc, TBl> {
///
/// Panics if the [`SourceId`] is invalid.
///
// TODO: this function is questionable, because in practice we send requests to sources that are outside the scope of syncing
pub fn source_num_ongoing_requests(&self, source_id: SourceId) -> usize {
debug_assert!(self.shared.sources.contains(source_id.0));

Expand Down
1 change: 1 addition & 0 deletions light-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async-channel = { version = "1.8.0", default-features = false } # TODO: no-std-
async-lock = { version = "2.7.0", default-features = false } # TODO: no-std-ize; this is has been done and is just waiting for a release: https://github.com/smol-rs/event-listener/pull/34
base64 = { version = "0.21.2", default-features = false, features = ["alloc"] }
blake2-rfc = { version = "0.2.18", default-features = false }
crossbeam-queue = { version = "0.3.8", default-features = false, features = ["alloc"] }
derive_more = "0.99.17"
either = { version = "1.8.1", default-features = false }
event-listener = { version = "2.5.3" }
Expand Down
Loading