Skip to content

connector

Functions


firma_sidecar::startup::connector::build_connector_registry

Section titled “firma_sidecar::startup::connector::build_connector_registry”

Function

Builds the [ConnectorRegistry] from the [connector] config section.

Returns an error when a [GenericHttpConnector] cannot be built (TLS setup failure) or when the host rate-limit parameters are zero (validation should have already caught this).

fn build_connector_registry(cfg: &config::ConnectorConfig) -> anyhow::Result<std::sync::Arc<crate::connector::ConnectorRegistry>>