We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2305a4c commit 13d985eCopy full SHA for 13d985e
aggregation_mode/batcher/src/server/http.rs
@@ -206,7 +206,10 @@ impl BatcherServer {
206
.json(AppResponse::new_unsucessfull("Invalid address", 400));
207
}
208
209
- let limit = params.limit.unwrap_or(100); // We take 100 as the default limit value
+ let limit = match params.limit {
210
+ Some(received_limit) => received_limit.min(100),
211
+ None => 100,
212
+ };
213
214
let address = params.address.to_lowercase();
215
0 commit comments