mirror of https://github.com/apache/kafka.git
CI / build (push) Waiting to run
Details
- startConsumerThread is always true so removed the variable. - Replaced the repetitive lock handling logic with `withReadLockAndEnsureInitialized` to reduce duplication and improve readability. - Consolidated the logic in `initializeResources` and. simplified method arguments to better encapsulate configuration. - Extracted common code and reduced the usage of global variables. - Named the variables properly. Tests: - Existing UTs since this patch refactored the code. Reviewers: PoAn Yang <payang@apache.org> |
||
---|---|---|
.. | ||
api/src | ||
src |