You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address final PR review recommendations (#579)
Addresses remaining issues from PR review comment:
1. Fixed Async Context Manager (CRITICAL - Issue #1)
- Added warning that default calls sync connect/disconnect
- Documented that implementations with async clients should override
- Included example of proper async implementation
- Prevents event loop blocking for async implementations
2. Updated Connection Logging (Issue #2)
- Changed from INFO to DEBUG level for connect/disconnect
- Added class name to log messages for clarity
- Emphasizes these are flag-only operations (not real connections)
- Reduces log noise for base implementation
3. Added Batch Size Upper Bound Warning (Issue #4)
- Warns when batch_size > 10,000 (memory concerns)
- Recommends 100-1000 for optimal performance
- Helps prevent out-of-memory errors
- Non-blocking (warning only, not error)
4. Documented Timeout Limitation (Issue #3)
- Clarified that default implementation doesn't enforce timeout
- Added example with signal-based timeout enforcement (Unix)
- Added simple example without timeout
- Subclasses can choose appropriate timeout strategy
All changes are backward compatible and non-breaking.
Test Results:
- 24/24 tests passing
- All linting checks pass (Ruff, format)
Signed-off-by: manavgup <manavg@gmail.com>
0 commit comments