Document the impact of the redjubjub channel bound

This commit is contained in:
teor 2021-02-04 08:08:44 +10:00 committed by Deirdre Connolly
parent d7c40af2a8
commit 99fe588896
1 changed files with 3 additions and 2 deletions

View File

@ -62,8 +62,9 @@ pub struct Verifier {
impl Default for Verifier {
fn default() -> Self {
let batch = batch::Verifier::default();
// This bound should be big enough to avoid RecvErrors
// when tasks wait on results for a long time.
// This bound limits the number of concurrent batches. It should be
// big enough to avoid RecvErrors when tasks wait on results for a long
// time.
let (tx, _) = channel(512);
Self { tx, batch }
}