Skip to main content

system_parameter_sync

Function system_parameter_sync 

Source
pub async fn system_parameter_sync(
    sync_config: SystemParameterSyncConfig,
    boot_frontend: Option<Arc<SystemParameterFrontend>>,
    adapter_client: Client,
    tick_interval: Option<Duration>,
) -> Result<(), Error>
Expand description

Run a loop that periodically pulls system parameters defined in the LaunchDarkly-backed SystemParameterFrontend and pushes modified values to the ALTER SYSTEM-backed SystemParameterBackend.

boot_frontend is the frontend the boot-time sync pulled from, if any. The loop adopts it on its first enabled tick instead of building a second one.