Fix next_batch pagination tokens in relations response.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-10-31 03:38:35 +00:00
1 parent 9265748a57
commit 7aeed0a95a
2 files changed
+8 -9

No files matched your search

+3 -2
View File
@@ -92,8 +92,9 @@ impl Service {
stack.push((relation.clone(), stack_pdu.1.saturating_add(1)));
}
pdus.push(relation);
if pdus.len() >= limit {
if pdus.len() < limit {
pdus.push(relation);
} else {
break 'limit;
}
}