File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -155,20 +155,20 @@ impl FlashbotsTask {
155155 }
156156 . await ;
157157
158- let Ok ( resp) = & response else {
159- counter ! ( "signet.builder.flashbots.submission_failures" ) . increment ( 1 ) ;
160- if let Err ( err) = & response {
158+ match response {
159+ Ok ( resp) => {
160+ counter ! ( "signet.builder.flashbots.bundles_submitted" ) . increment ( 1 ) ;
161+ span_debug ! (
162+ submit_span,
163+ hash = resp. map( |r| r. bundle_hash. to_string( ) ) ,
164+ "received bundle hash after submitted to flashbots"
165+ ) ;
166+ }
167+ Err ( err) => {
168+ counter ! ( "signet.builder.flashbots.submission_failures" ) . increment ( 1 ) ;
161169 span_error ! ( submit_span, %err, "MEV bundle submission failed - error returned" ) ;
162170 }
163- continue ;
164- } ;
165-
166- counter ! ( "signet.builder.flashbots.bundles_submitted" ) . increment ( 1 ) ;
167- span_debug ! (
168- submit_span,
169- hash = resp. as_ref( ) . map( |r| r. bundle_hash. to_string( ) ) ,
170- "received bundle hash after submitted to flashbots"
171- ) ;
171+ }
172172 }
173173 }
174174
You can’t perform that action at this time.
0 commit comments