/// GC job spawner
///
/// Periodically iterates over all databases in node, and executes GC on them.
GC job spawner
Periodically iterates over all databases in node, and executes GC on them.
GC job spawner Periodically iterates over all databases in node and executes GC on them .
pub async fn spawn_gc(manager: &Manager<'_>) {
    debug!("Spawning GC handler.");
    let timer = Duration::from_secs(manager.config().gc_timer);
    loop {
        delay_for(timer).await;
        if let Err(e) = execute_gc(manager).await {
            error!("{}", e);
        }
    }
}
pub async fn spawn_gc ( manager : & Manager < ' _ > ) { debug ! ( " " ) ; let timer = Duration :: from_secs ( manager . config ( ) . gc_timer ) ; loop { delay_for ( timer ) . await ; if let Err ( e ) = execute_gc ( manager ) . await { error ! ( " " e ) ; } } }
GC job spawner
Periodically iterates over all databases in node, and executes GC on them.
GC job spawner Periodically iterates over all databases in node and executes GC on them .
manager
&Manager<'_>