File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
aggregation_mode/batcher/src/server Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -198,13 +198,10 @@ impl BatcherServer {
198198 . await
199199 {
200200 Ok ( receipts) => receipts,
201- Err ( e ) => {
201+ Err ( _ ) => {
202202 return HttpResponse :: InternalServerError ( ) . json (
203203 AppResponse :: new_unsucessfull (
204- format ! (
205- "Internal server error: Failed to get tasks by address and nonce: {e}"
206- )
207- . as_str ( ) ,
204+ "Internal server error: Failed to get tasks by address and nonce" ,
208205 500 ,
209206 ) ,
210207 ) ;
@@ -213,13 +210,10 @@ impl BatcherServer {
213210 } else {
214211 match state. db . get_tasks_by_address ( & address, 100 ) . await {
215212 Ok ( receipts) => receipts,
216- Err ( e ) => {
213+ Err ( _ ) => {
217214 return HttpResponse :: InternalServerError ( ) . json (
218215 AppResponse :: new_unsucessfull (
219- format ! (
220- "Internal server error: Failed to get tasks by address and nonce: {e}"
221- )
222- . as_str ( ) ,
216+ "Internal server error: Failed to get tasks by address and nonce" ,
223217 500 ,
224218 ) ,
225219 ) ;
@@ -233,10 +227,8 @@ impl BatcherServer {
233227 "receipts" : receipts
234228 } ) ) )
235229 }
236- Err ( e) => HttpResponse :: InternalServerError ( ) . json ( AppResponse :: new_unsucessfull (
237- format ! ( "Internal server error: {e}" ) . as_str ( ) ,
238- 500 ,
239- ) ) ,
230+ Err ( _) => HttpResponse :: InternalServerError ( )
231+ . json ( AppResponse :: new_unsucessfull ( "Internal server error" , 500 ) ) ,
240232 }
241233 }
242234}
You can’t perform that action at this time.
0 commit comments