//! Logging-client resolution helpers for `/debug/schema` services.
//!
//! This module isolates logging-client and pool resolution from report-loading
//! orchestration to keep service wiring narrow and focused.
use actix_web::HttpResponse;
use sqlx::{Pool, Postgres};
use crate::AppState;
use super::context_pool_resolver::logging_client_and_pool;
/// Resolved logging-client name and active Postgres pool.
pub(super) type LoggingClientPool = (String, Pool<Postgres>);
/// Resolves the configured logging-client name and active Postgres pool.
pub(super) fn resolve_logging_client_pool(
app_state: &AppState,
) -> Result<LoggingClientPool, HttpResponse> {
logging_client_and_pool(app_state)
}