fix items limit condition

This commit is contained in:
yggverse 2026-04-07 12:27:45 +03:00
parent 1a9b46fbb5
commit d8a0c31889

View file

@ -48,7 +48,7 @@ async fn main() {
channel.items_limit channel.items_limit
); );
for (i, item) in items.into_iter().enumerate() { for (i, item) in items.into_iter().enumerate() {
if channel.items_limit.is_some_and(|l| i > l) { if channel.items_limit.is_some_and(|l| i >= l) {
debug!("items limit for channel `{c}` reached at {i}; break."); debug!("items limit for channel `{c}` reached at {i}; break.");
break; break;
} }