| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The Timer component now handles cleanup automatically on worker exit, so the manual timer cleanup logic in metric listeners is no longer needed. This removes the CoordinatorManager and Coroutine dependencies that were only used for timer cleanup. Changes: - Remove timerId variable assignment and cleanup coroutines - Remove unused imports: CoordinatorManager, Constants, and Coroutine - Simplify timer usage across all metric listeners Affected files: - MetricBufferWatcher - OnBeforeHandle - OnCoroutineServerStart - OnMetricFactoryReady - OnWorkerStart - PoolWatcher - QueueWatcher
There was a problem hiding this comment.
This PR removes redundant timer cleanup code from metric listeners since the Timer component now handles cleanup automatically when workers exit via the coordinator pattern.
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file| File | Description |
|---|---|
| src/metric/src/Listener/QueueWatcher.php | Removes timer cleanup coroutine and unused imports for queue metrics monitoring |
| src/metric/src/Listener/PoolWatcher.php | Removes timer cleanup coroutine and unused imports for connection pool monitoring |
| src/metric/src/Listener/OnWorkerStart.php | Removes timer cleanup coroutine and coordinator imports for worker-level metrics |
| src/metric/src/Listener/OnMetricFactoryReady.php | Removes timer cleanup coroutine and coordinator imports for metric factory readiness |
| src/metric/src/Listener/OnCoroutineServerStart.php | Removes timer cleanup coroutine and coordinator imports for coroutine server metrics |
| src/metric/src/Listener/OnBeforeHandle.php | Removes timer cleanup coroutine and coordinator imports for command metric collection |
| src/metric/src/Listener/MetricBufferWatcher.php | Removes timer cleanup coroutine and unused imports for metric buffer flushing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Remove redundant timer cleanup code from metric listeners since the Timer component now handles cleanup automatically on worker exit.
Changes
Files Modified
Test Plan
Breaking Changes
No breaking changes - this is an internal cleanup that removes redundant code.