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 a3e0aad commit a59d4f3Copy full SHA for a59d4f3
aggregation_mode/batcher/src/server/http.rs
@@ -111,16 +111,14 @@ impl BatcherServer {
111
{
112
Ok(receipts) => receipts.len(),
113
Err(_) => {
114
- return HttpResponse::InternalServerError().json(AppResponse::new_unsucessfull(
115
- format!("Internal server error").as_str(),
116
- 500,
117
- ))
+ return HttpResponse::InternalServerError()
+ .json(AppResponse::new_unsucessfull("Internal server error", 500))
118
}
119
};
120
121
if daily_tasks_by_address >= MAX_PROOFS_PER_DAY {
122
return HttpResponse::InternalServerError().json(AppResponse::new_unsucessfull(
123
- format!("Request denied: Query limit exceeded.").as_str(),
+ "Request denied: Query limit exceeded.",
124
400,
125
));
126
0 commit comments