pinakes-server: propagate sync/share errors; cap unbounded pagination
limits Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I79339740dd34353014d02f571b6f55a26a6a6964
This commit is contained in:
parent
b12ad5d272
commit
f049dd100a
3 changed files with 37 additions and 15 deletions
|
|
@ -266,7 +266,7 @@ pub async fn get_changes(
|
|||
drop(config);
|
||||
|
||||
let cursor = params.cursor.unwrap_or(0);
|
||||
let limit = params.limit.unwrap_or(DEFAULT_CHANGES_LIMIT);
|
||||
let limit = params.limit.unwrap_or(DEFAULT_CHANGES_LIMIT).min(1000);
|
||||
|
||||
let changes = state
|
||||
.storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue