fix: address unit-of-work verify findings
Abort the transport when a bounded close ends, so a frozen server leaves no sessions over the pool once the ping has no transaction. Under the shared request deadline a block sets no timer of its own, so a single cancel closes the connection and the log has one record. Add a test that concurrent worker deliveries get separate units of work, and state the cost of the pattern against both baselines in the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -451,7 +451,7 @@ EOF
|
||||
```
|
||||
|
||||
`ChatService` и `MessageService` создаются с кэшем вторым параметром:
|
||||
`ChatService(db_session=db_session, cache=cache)`, где `cache` — из
|
||||
`ChatService(uow=uow, cache=cache)`, где `cache` — из
|
||||
`src.infra.cache.instance` (`await cache.aclose()` в конце, нужен
|
||||
`make start_cache`). Все методы keyword-only, commit делает сам сервис. Ошибки — доменные
|
||||
исключения из `src.core.exceptions` (базовый `DomainError`), не
|
||||
|
||||
Reference in New Issue
Block a user