Skip to content

Commit

Permalink
Increase MAX_RESPONSE_BATCH_SIZE to 4096
Browse files Browse the repository at this point in the history
Based on experiments.
  • Loading branch information
madadam committed Aug 13, 2024
1 parent 296e020 commit b60649e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/network/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pub(super) const MAX_UNCHOKED_DURATION: Duration = Duration::from_secs(30);
pub(super) const INTEREST_TIMEOUT: Duration = Duration::from_secs(3);

// Max number of responses to process in a singe batch (that is, in a single db write transaction).
pub(super) const MAX_RESPONSE_BATCH_SIZE: usize = 1024;
pub(super) const MAX_RESPONSE_BATCH_SIZE: usize = 4096;

0 comments on commit b60649e

Please sign in to comment.