debug active limits

This commit is contained in:
yggverse 2026-04-07 12:25:30 +03:00
parent 588ad6b9dd
commit 1a9b46fbb5

View file

@ -42,7 +42,11 @@ async fn main() {
match rp.query().channel_videos(&channel.id).await { match rp.query().channel_videos(&channel.id).await {
Ok(result) => { Ok(result) => {
let items = result.content.items; let items = result.content.items;
debug!("received {:?} items to handle...", items.len()); debug!(
"received {:?} items to handle, limit: {:?}...",
items.len(),
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.");