File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -898,18 +898,24 @@ impl Node {
898
898
return ;
899
899
}
900
900
901
- if bcast_cm. list_channels ( ) . iter ( ) . any ( |chan| chan. is_public ) {
902
- interval. tick ( ) . await ;
901
+ if !bcast_cm. list_channels ( ) . iter ( ) . any ( |chan| chan. is_public ) {
902
+ continue ;
903
+ }
903
904
904
- while bcast_pm. get_peer_node_ids ( ) . is_empty ( ) {
905
- // Sleep a bit and retry if we don't have any peers yet.
906
- tokio:: time:: sleep ( Duration :: from_secs ( 5 ) ) . await ;
907
- }
905
+ interval. tick ( ) . await ;
908
906
909
- let addresses =
910
- bcast_config. listening_address . iter ( ) . cloned ( ) . map ( |a| a. 0 ) . collect ( ) ;
911
- bcast_pm. broadcast_node_announcement ( [ 0 ; 3 ] , [ 0 ; 32 ] , addresses) ;
907
+ if !bcast_cm. list_channels ( ) . iter ( ) . any ( |chan| chan. is_public ) {
908
+ continue ;
912
909
}
910
+
911
+ while bcast_pm. get_peer_node_ids ( ) . is_empty ( ) {
912
+ // Sleep a bit and retry if we don't have any peers yet.
913
+ tokio:: time:: sleep ( Duration :: from_secs ( 5 ) ) . await ;
914
+ }
915
+
916
+ let addresses =
917
+ bcast_config. listening_address . iter ( ) . cloned ( ) . map ( |a| a. 0 ) . collect ( ) ;
918
+ bcast_pm. broadcast_node_announcement ( [ 0 ; 3 ] , [ 0 ; 32 ] , addresses) ;
913
919
}
914
920
} ) ;
915
921
You can’t perform that action at this time.
0 commit comments