commits
- Replace global storage instance with local initialization in CLI commands
- Implement read-only mode using bbolt.Options{ReadOnly: true}
- Ensure deterministic resource cleanup with defer Close() in all actions
- Fix cursor early exit bug in BoltStorage iteration logic
- Optimize memory allocations in batch record processing
- Add comprehensive table-driven tests for storage and publishing
This refactor allows CLI status commands to run concurrently with the
main sync process by opening the database in read-only mode.
- Replace global storage instance with local initialization in CLI commands
- Implement read-only mode using bbolt.Options{ReadOnly: true}
- Ensure deterministic resource cleanup with defer Close() in all actions
- Fix cursor early exit bug in BoltStorage iteration logic
- Optimize memory allocations in batch record processing
- Add comprehensive table-driven tests for storage and publishing
This refactor allows CLI status commands to run concurrently with the
main sync process by opening the database in read-only mode.