Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

refactor: delete duplicate config and use ClientOptions uniformly #117

Merged
merged 6 commits into from
Aug 5, 2020

Conversation

foreverneverer
Copy link
Contributor

@foreverneverer foreverneverer commented Jul 23, 2020

Now the config of PegasusClient is duplicate, which existed in ClusterOptions(it loads from config file) and ClientOptions(it is created manualy), this PR del the ClusterOptions and use ClientOptions uniformly.

@@ -35,6 +35,11 @@
<artifactId>metrics-core</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this dep be shaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but If it hasn't compatibility problems, it maybe no need to be shaded, otherwise, should all dependencys be shaded?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid so. The deps for non-testing code generally need to be shaded in case of dep conflict.
But given the apache.common.configuration2 is not much used here, we can leave it unshaded for now.

@foreverneverer foreverneverer merged commit 2f5af93 into XiaoMi:master Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants