Skip to main content

run_with_authority

Function run_with_authority 

pub async fn run_with_authority(
    live_config_authority: LiveConfigAuthority,
    host: String,
    port: u16,
    registry: DaemonRegistry,
    ephemeral: bool,
    startup_feedback_enabled: bool,
) -> Result<(DaemonExit, Option<ConfigOwnershipGuard>)>
Expand description

Use the authority acquired before constructing producers such as SOP maintenance.

On DaemonExit::Reload the process-ownership guard is drained with ownership retained and returned to the caller, so the next daemon generation can adopt it without an unlocked read/reacquire interval. On shutdown or error the guard is released here.