[Enhancement] Optimize DefaultMQPushConsumer construction method #8227
Labels
soc
Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on
type/enhancement
Before Creating the Enhancement Request
Summary
I found a duplicate structure in the constructor.
Motivation
To reduce code duplication and improve code reusability.
Describe the Solution You'd Like
We can let one constructor call another constructor, and finally perform the actual assignment operation only in one constructor.
Describe Alternatives You've Considered
In each constructor, directly call the most complete constructor.
Additional Context
No response
The text was updated successfully, but these errors were encountered: