run

Function run 

Source
pub(crate) async fn run(
    config: Tier3Config,
    audio_config: AudioConfig,
    _pool: PgPool,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Runs the Tier 3 voice capture orchestrator.

Manages a pool of D-STAR protocol connections, capturing voice streams and writing decoded audio with metadata to PostgreSQL. Runs until cancelled.

§Current behavior

This is a placeholder: the connection-pool management layer that drives AsyncSession<P> is not yet implemented. For now the function logs its configuration and then blocks on a never-completing future so the main task-supervisor loop treats it as a well-behaved long-running task.

§Errors

Returns an error if a fatal, non-retryable failure occurs (e.g., the database pool is closed). Today, the stub path cannot fail.