Introduce function/trait method to compute number of messages in the range #2032
Labels
A-chores
Something that has to be done, as part of regular maintenance
Milestone
#2031 (review)
ExactSizeIterator
is not implemented forRangeInclusive<u64>
, so we can't use.len()
..count()
is probably ineffective (but actually maybe rust compiler is smart enough to optimize that?). So we're using construct like this:Let's extract all except the
unwrap_or()
to a separate function/trait method and use it across the code.The text was updated successfully, but these errors were encountered: