docs: correct get_pool singleton pattern in CLAUDE.md #83
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gertjan/bodega!83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/claudemd-get-pool-singleton"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CLAUDE.md's "Key singletons" section claimed both
get_db_client()andget_pool()use@lru_cache. That's only true forget_db_client()(src/database/client.py:44).get_pool()(src/database/timescale_client.py:147) is a module-global_poolguarded by anasyncio.Lock— the correct pattern for an async factory, sincelru_cachewould memoize the returned coroutine rather than the pool.Docs-only change; corrects a claim a future session could reason wrongly from.
🤖 Generated with Claude Code