pub fn build_state(cfg: Arc<Config>) -> Result<AppState>
Build the shared AppState: a fresh Runtime wrapped in an ArcSwap for hot-reload, the upstream HTTP client, and the metric registry.
AppState
Runtime
ArcSwap