Document the impact of the redjubjub channel bound
This commit is contained in:
parent
d7c40af2a8
commit
99fe588896
|
@ -62,8 +62,9 @@ pub struct Verifier {
|
||||||
impl Default for Verifier {
|
impl Default for Verifier {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let batch = batch::Verifier::default();
|
let batch = batch::Verifier::default();
|
||||||
// This bound should be big enough to avoid RecvErrors
|
// This bound limits the number of concurrent batches. It should be
|
||||||
// when tasks wait on results for a long time.
|
// big enough to avoid RecvErrors when tasks wait on results for a long
|
||||||
|
// time.
|
||||||
let (tx, _) = channel(512);
|
let (tx, _) = channel(512);
|
||||||
Self { tx, batch }
|
Self { tx, batch }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue