server: properly limit index
This commit is contained in:
parent
956c20b156
commit
f86a5f464d
@ -977,7 +977,7 @@ pub async fn label_unprocessed(
|
||||
info!("Loaded {} rules", rules.len());
|
||||
|
||||
let ids = if let Some(limit) = limit {
|
||||
let limit = limit.max(ids.len());
|
||||
let limit = limit.min(ids.len());
|
||||
&ids[..limit]
|
||||
} else {
|
||||
&ids[..]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user