pub(crate) fn sync_tss_target_data() {
    let mut target_data: HiveTargetData = Default::default();

    for tss in TSS.iter() {
        let tss = tss.lock().unwrap();

        if tss.get_targets().is_none() {
            continue;
        }

        target_data[tss.get_position() as usize] = tss.get_targets().clone();
    }

    DB.config_tree
        .c_insert(keys::config::TARGETS, &target_data)
        .unwrap();
}
/// Synchronize the DB target data with the current target data in the runtime [`TSS`].
Synchronize the DB target data with the current target data in the runtime [`TSS`].
Synchronize the DB target data with the current target data in the runtime [ ` TSS ` ] .
pub(crate) fn sync_tss_target_data() {
    let mut target_data: HiveTargetData = Default::default();
    for tss in TSS.iter() {
        let tss = tss.lock().unwrap();
        if tss.get_targets().is_none() {
            continue;
        }
        target_data[tss.get_position() as usize] = tss.get_targets().clone();
    }
    DB.config_tree
        .c_insert(keys::config::TARGETS, &target_data)
        .unwrap();
}
pub ( crate ) fn sync_tss_target_data ( ) { let mut target_data : HiveTargetData = Default :: default ( ) ; for tss in TSS . iter ( ) { let tss = tss . lock ( ) . unwrap ( ) ; if tss . get_targets ( ) . is_none ( ) { continue ; } target_data [ tss . get_position ( ) as usize ] = tss . get_targets ( ) . clone ( ) ; } DB . config_tree . c_insert ( keys :: config :: TARGETS , & target_data ) . unwrap ( ) ; }
Synchronize the DB target data with the current target data in the runtime [`TSS`].
Synchronize the DB target data with the current target data in the runtime [ ` TSS ` ] .