Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Optimize DefaultMQProducer construction method #8276

Closed
1 task done
yx9o opened this issue Jun 9, 2024 · 0 comments · Fixed by #8277
Closed
1 task done

[Enhancement] Optimize DefaultMQProducer construction method #8276

yx9o opened this issue Jun 9, 2024 · 0 comments · Fixed by #8277

Comments

@yx9o
Copy link
Contributor

yx9o commented Jun 9, 2024

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

I found a duplicate structure in the constructor.
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant