@@ -123,7 +123,10 @@ impl Handler<DrReporterMsg> for DrReporter {
123123 msg. reports . retain ( |report| {
124124 if self . pending_dr_reports . contains ( & report. dr_id ) {
125125 // Timeout is not over yet, no action is needed
126- log:: debug!( "[{}] => ignored as it's currently being reported" , report. dr_id) ;
126+ log:: debug!(
127+ "[{}] => ignored as it's currently being reported" ,
128+ report. dr_id
129+ ) ;
127130
128131 false
129132 } else {
@@ -230,7 +233,8 @@ impl Handler<DrReporterMsg> for DrReporter {
230233
231234 log:: info!(
232235 "{:?} will be reported in {} transactions" ,
233- dr_ids, batched_reports. len( ) ,
236+ dr_ids,
237+ batched_reports. len( ) ,
234238 ) ;
235239
236240 for ( batched_report, eth_gas_limit) in batched_reports {
@@ -314,8 +318,9 @@ impl Handler<DrReporterMsg> for DrReporter {
314318 Err ( elapsed) => {
315319 // Timeout is over
316320 log:: warn!(
317- "Timeout ({} secs) when calling reportResultBatch{:?}" ,
318- elapsed, & batched_report
321+ "Timeout ({} secs) when calling reportResultBatch{:?}" ,
322+ elapsed,
323+ & batched_report
319324 ) ;
320325 }
321326 }
@@ -428,7 +433,6 @@ async fn split_by_gas_limit(
428433 // Skip this single-query batch if still not possible to estimate gas
429434 log:: error!( "Cannot estimate gas limit: {:?}" , e) ;
430435 log:: warn!( "Skipping report batch: {:?}" , batch_params) ;
431-
432436 } else {
433437 // Split batch in half if gas estimation is not possible
434438 let ( batch_tuples_1, batch_tuples_2) =
@@ -495,8 +499,12 @@ async fn split_by_gas_limit(
495499 log:: debug!(
496500 "reportResultBatch (x{} drs) estimated profit: {} - {} ETH" ,
497501 batch_params. len( ) ,
498- Unit :: Wei ( & revenues. to_string( ) ) . to_eth_str( ) . unwrap_or_default( ) ,
499- Unit :: Wei ( & expenses. to_string( ) ) . to_eth_str( ) . unwrap_or_default( ) ,
502+ Unit :: Wei ( & revenues. to_string( ) )
503+ . to_eth_str( )
504+ . unwrap_or_default( ) ,
505+ Unit :: Wei ( & expenses. to_string( ) )
506+ . to_eth_str( )
507+ . unwrap_or_default( ) ,
500508 ) ;
501509 v. push ( ( batch_params, estimated_gas) ) ;
502510 continue ;
0 commit comments