fix: add token refresh lock to prevent concurrent API calls (issue #42) #46
Reference in New Issue
Block a user
Delete Branch "feature/issue-42-token-refresh-lock"
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?
Summary
asyncio.Lockto prevent concurrent token refresh attemptsProblem
Docker logs showed token refresh failures:
Multiple coroutines detect expired token simultaneously and all try to refresh,
hitting KIS API's 1-per-minute token refresh rate limit.
Solution
Test Coverage
Performance
Closes
Closes #42
🤖 Generated with Claude Code