pub(crate) async fn apply() {
        debug!("Applying child status");
        let store = &ChildStatusConfig::get().status;
        for nexus in instances() {
            nexus.children.iter_mut().for_each(|child| {
                if let Some(status) = store.get(&child.name) {
                    info!(
                        "Apply state to child {}, reasons {:?}",
                        child.name, status
                    );
                    child.set_state(*status);
                }
            });
            nexus.reconfigure(DREvent::ChildStatusSync).await;
        }
    }
/// Apply the status in the configuration to each child.
Apply the status in the configuration to each child.
Apply the status in the configuration to each child .
pub(crate) async fn apply() {
        debug!("Applying child status");
        let store = &ChildStatusConfig::get().status;
        for nexus in instances() {
            nexus.children.iter_mut().for_each(|child| {
                if let Some(status) = store.get(&child.name) {
                    info!(
                        "Apply state to child {}, reasons {:?}",
                        child.name, status
                    );
                    child.set_state(*status);
                }
            });
            nexus.reconfigure(DREvent::ChildStatusSync).await;
        }
    }
pub ( crate ) async fn apply ( ) { debug ! ( " " ) ; let store = & ChildStatusConfig :: get ( ) . status ; for nexus in instances ( ) { nexus . children . iter_mut ( ) . for_each ( | child | { if let Some ( status ) = store . get ( & child . name ) { info ! ( " " child name status ) ; child . set_state ( * status ) ; } } ) ; nexus . reconfigure ( DREvent :: ChildStatusSync ) . await ; } }
Apply the status in the configuration to each child.
Apply the status in the configuration to each child .