@@ -22,7 +22,6 @@ use init4_bin_base::deps::{
2222use signet_constants:: SignetSystemConstants ;
2323use std:: time:: Instant ;
2424use tokio:: { sync:: mpsc, task:: JoinHandle } ;
25- use tracing:: Instrument ;
2625
2726macro_rules! spawn_provider_send {
2827 ( $provider: expr, $tx: expr) => {
@@ -136,18 +135,12 @@ impl SubmitTask {
136135
137136 let mut req = bumpable. req ( ) . clone ( ) ;
138137
139- let span = debug_span ! (
140- "SubmitTask::retrying_send" ,
141- initial_nonce = ?bumpable. req( ) . nonce,
142- ) ;
143- let _guard = span. enter ( ) ;
144-
145138 // Retry loop
146139 let result = loop {
147140 debug ! ( retries = bumpable. bump_count( ) , nonce = ?req. nonce, "attempting transaction send" ) ;
148141
149142 let inbound_result =
150- match self . send_transaction ( req. clone ( ) ) . instrument ( span . clone ( ) ) . await {
143+ match self . send_transaction ( req. clone ( ) ) . await {
151144 Ok ( control_flow) => control_flow,
152145 Err ( error) => {
153146 if let Some ( value) = self . slot_still_valid ( expected_slot) {
@@ -251,7 +244,6 @@ impl SubmitTask {
251244 . provider ( )
252245 . get_block_by_number ( prev_host_number. into ( ) )
253246 . into_future ( )
254- . instrument ( span. clone ( ) )
255247 . await
256248 else {
257249 warn ! ( ru_block_number, host_block_number, "failed to get previous host block" ) ;
@@ -272,7 +264,7 @@ impl SubmitTask {
272264 self . constants ,
273265 ) ;
274266 let bumpable =
275- match prep. prep_transaction ( & prev_host. header ) . instrument ( span . clone ( ) ) . await {
267+ match prep. prep_transaction ( & prev_host. header ) . await {
276268 Ok ( bumpable) => bumpable,
277269 Err ( error) => {
278270 error ! ( %error, "failed to prepare transaction for submission" ) ;
@@ -281,13 +273,13 @@ impl SubmitTask {
281273 } ;
282274
283275 // Simulate the transaction to check for reverts
284- if let Err ( error) = self . sim_with_call ( bumpable. req ( ) ) . instrument ( span . clone ( ) ) . await {
276+ if let Err ( error) = self . sim_with_call ( bumpable. req ( ) ) . await {
285277 error ! ( %error, "simulation failed for transaction" ) ;
286278 continue ;
287279 } ;
288280
289281 // Now send the transaction
290- if let Err ( error) = self . retrying_send ( bumpable, 3 ) . instrument ( span . clone ( ) ) . await {
282+ if let Err ( error) = self . retrying_send ( bumpable, 3 ) . await {
291283 error ! ( %error, "error dispatching block to host chain" ) ;
292284 continue ;
293285 }
0 commit comments