配置 SSOT(TOML + .env) 统一错误契约 Auth 与事务边界 Redis / Celery 可靠性:业务 Redis(DB/0)与 Celery broker/backend(DB/1)显式拆分;连接池、sync client 可观测性(OpenTelemetry + LGTM)
13 lines
263 B
Python
13 lines
263 B
Python
"""Quota feature dependencies: get_quota_service."""
|
|
|
|
from fastapi import Depends
|
|
|
|
from app.features.quota.service import QuotaService
|
|
from app.core.deps_types import DbDep
|
|
|
|
|
|
def get_quota_service(
|
|
db: DbDep,
|
|
) -> QuotaService:
|
|
return QuotaService(db=db)
|