@@ -22,7 +22,6 @@ use init4_bin_base::deps::{
22
22
use signet_constants:: SignetSystemConstants ;
23
23
use std:: time:: Instant ;
24
24
use tokio:: { sync:: mpsc, task:: JoinHandle } ;
25
- use tracing:: Instrument ;
26
25
27
26
macro_rules! spawn_provider_send {
28
27
( $provider: expr, $tx: expr) => {
@@ -136,18 +135,12 @@ impl SubmitTask {
136
135
137
136
let mut req = bumpable. req ( ) . clone ( ) ;
138
137
139
- let span = debug_span ! (
140
- "SubmitTask::retrying_send" ,
141
- initial_nonce = ?bumpable. req( ) . nonce,
142
- ) ;
143
- let _guard = span. enter ( ) ;
144
-
145
138
// Retry loop
146
139
let result = loop {
147
140
debug ! ( retries = bumpable. bump_count( ) , nonce = ?req. nonce, "attempting transaction send" ) ;
148
141
149
142
let inbound_result =
150
- match self . send_transaction ( req. clone ( ) ) . instrument ( span . clone ( ) ) . await {
143
+ match self . send_transaction ( req. clone ( ) ) . await {
151
144
Ok ( control_flow) => control_flow,
152
145
Err ( error) => {
153
146
if let Some ( value) = self . slot_still_valid ( expected_slot) {
@@ -251,7 +244,6 @@ impl SubmitTask {
251
244
. provider ( )
252
245
. get_block_by_number ( prev_host_number. into ( ) )
253
246
. into_future ( )
254
- . instrument ( span. clone ( ) )
255
247
. await
256
248
else {
257
249
warn ! ( ru_block_number, host_block_number, "failed to get previous host block" ) ;
@@ -272,7 +264,7 @@ impl SubmitTask {
272
264
self . constants ,
273
265
) ;
274
266
let bumpable =
275
- match prep. prep_transaction ( & prev_host. header ) . instrument ( span . clone ( ) ) . await {
267
+ match prep. prep_transaction ( & prev_host. header ) . await {
276
268
Ok ( bumpable) => bumpable,
277
269
Err ( error) => {
278
270
error ! ( %error, "failed to prepare transaction for submission" ) ;
@@ -281,13 +273,13 @@ impl SubmitTask {
281
273
} ;
282
274
283
275
// 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 {
285
277
error ! ( %error, "simulation failed for transaction" ) ;
286
278
continue ;
287
279
} ;
288
280
289
281
// 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 {
291
283
error ! ( %error, "error dispatching block to host chain" ) ;
292
284
continue ;
293
285
}
0 commit comments