Closed the-mikedavis closed 1 year ago
Patch coverage: 100.00%
and project coverage change: +0.34%
:tada:
Comparison is base (
f335c59
) 86.80% compared to head (b0d9005
) 87.15%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @the-mikedavis
thanks for the contribution, even though the fix is valid, i think the main issue is that if val == usize::MAX
there is something wrong. I did a fix for this in #189 . The main issue was due the spawning of probably too many tasks in a loop.
Give it a look :)
Ah yeah I agree. I was confused about how val
could be usize::MAX
, that does seem like something went wrong π
Letting this panic if it reaches usize::MAX
might help with future debugging so I will close this out π
val + 1
could overflow inval == usize::MAX
. We can switch the check toval >= self.capacity - 1
because we know thatcapacity
is non-zero:mpsc::channel
would panic inMessageAccumulator::new
ifbatch_size
were0
.Connects #186