Skip to main content

compile_runtime_snapshot

Function compile_runtime_snapshot 

Source
pub fn compile_runtime_snapshot(
    rt: &RuntimeConfig,
    previous: Option<&CompiledRuntimeSnapshot>,
) -> Result<CompiledRuntimeSnapshot, Box<dyn Error + Send + Sync>>
Expand description

Build a CompiledRuntimeSnapshot from a RuntimeConfig.

Upstream runtimes are created first and shared with groups/router so that the same Arc<UpstreamRuntime> objects are used for health probing and routing.