Rewrite the comment to be more explicit

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

View File

@ -62,9 +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 limits the number of concurrent batches. It should be // This bound limits the number of concurrent batches for this verifier.
// big enough to avoid RecvErrors when tasks wait on results for a long // If tasks delay checking for verifier results, and the bound is too small,
// time. // new batches will be rejected with `RecvError`s.
let (tx, _) = channel(512); let (tx, _) = channel(512);
Self { tx, batch } Self { tx, batch }
} }