File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -799,12 +799,12 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
799
799
onchain_wallet_sync_interval
800
800
. set_missed_tick_behavior ( tokio:: time:: MissedTickBehavior :: Skip ) ;
801
801
loop {
802
- let now = Instant :: now ( ) ;
803
802
tokio:: select! {
804
803
_ = stop_sync. changed( ) => {
805
804
return ;
806
805
}
807
806
_ = onchain_wallet_sync_interval. tick( ) => {
807
+ let now = Instant :: now( ) ;
808
808
match wallet. sync( ) . await {
809
809
Ok ( ( ) ) => log_trace!(
810
810
sync_logger,
@@ -838,7 +838,6 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
838
838
tokio:: time:: interval ( Duration :: from_secs ( wallet_sync_interval_secs) ) ;
839
839
wallet_sync_interval. set_missed_tick_behavior ( tokio:: time:: MissedTickBehavior :: Skip ) ;
840
840
loop {
841
- let now = Instant :: now ( ) ;
842
841
tokio:: select! {
843
842
_ = stop_sync. changed( ) => {
844
843
return ;
@@ -848,6 +847,7 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
848
847
& * sync_cman as & ( dyn Confirm + Sync + Send ) ,
849
848
& * sync_cmon as & ( dyn Confirm + Sync + Send ) ,
850
849
] ;
850
+ let now = Instant :: now( ) ;
851
851
match tx_sync. sync( confirmables) . await {
852
852
Ok ( ( ) ) => log_trace!(
853
853
sync_logger,
You can’t perform that action at this time.
0 commit comments