Skip to main content

build_state

Function build_state 

Source
pub fn build_state(cfg: Arc<Config>) -> Result<AppState>
Expand description

Build the shared AppState: a fresh Runtime wrapped in an ArcSwap for hot-reload, the upstream HTTP client, and the metric registry.