@@ -14,7 +14,6 @@ use esplora_client::r#async::AsyncClient;
14
14
#[ cfg( not( feature = "async-interface" ) ) ]
15
15
use esplora_client:: blocking:: BlockingClient ;
16
16
17
- use std:: time:: Instant ;
18
17
use std:: collections:: HashSet ;
19
18
use core:: ops:: Deref ;
20
19
91
90
let mut sync_state = self . sync_state . lock ( ) . await ;
92
91
93
92
log_trace ! ( self . logger, "Starting transaction sync." ) ;
94
- let start_time = Instant :: now ( ) ;
93
+ #[ cfg( feature = "std" ) ]
94
+ let start_time = std:: time:: Instant :: now ( ) ;
95
95
let mut num_confirmed = 0 ;
96
96
let mut num_unconfirmed = 0 ;
97
97
@@ -227,8 +227,12 @@ where
227
227
sync_state. pending_sync = false ;
228
228
}
229
229
}
230
+ #[ cfg( feature = "std" ) ]
230
231
log_debug ! ( self . logger, "Finished transaction sync at tip {} in {}ms: {} confirmed, {} unconfirmed." ,
231
232
tip_hash, start_time. elapsed( ) . as_millis( ) , num_confirmed, num_unconfirmed) ;
233
+ #[ cfg( not( feature = "std" ) ) ]
234
+ log_debug ! ( self . logger, "Finished transaction sync at tip {}: {} confirmed, {} unconfirmed." ,
235
+ tip_hash, num_confirmed, num_unconfirmed) ;
232
236
Ok ( ( ) )
233
237
}
234
238
0 commit comments