File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,7 +537,10 @@ pub(crate) async fn sites_task(
537537 typeinfos: typeinfos. clone( )
538538 } ;
539539
540+ * app_state. online_states. write( ) . await = sites_info. keys( ) . map( |site| ( site. clone( ) , Default :: default ( ) ) ) . collect( ) ;
541+
540542 let mut online_status_workers = Vec :: new( ) ;
543+
541544 for ( site, info) in sites_info. iter( ) {
542545 if app_state. app_closing. load( std:: sync:: atomic:: Ordering :: Relaxed ) {
543546 break ;
@@ -555,7 +558,6 @@ pub(crate) async fn sites_task(
555558 futures:: future:: join_all( online_status_workers) . await ;
556559 debug!( target: "OnlineStatus" , "online status task finish" ) ;
557560 } ) ) ;
558- * app_state. online_states. write( ) . await = sites_info. keys( ) . map( |site| ( site. clone( ) , Default :: default ( ) ) ) . collect( ) ;
559561
560562 let params = shvrpc:: journalrw:: GetLog2Params {
561563 since: shvrpc:: journalrw:: GetLog2Since :: LastEntry ,
You can’t perform that action at this time.
0 commit comments