-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[AppConfig] Not share SyncTokenPolicy across Configuration clients #33031
Conversation
API change check API changes are not detected in this pull request. |
@@ -186,7 +185,7 @@ public ConfigurationClientBuilder() { | |||
* and {@link #retryPolicy(HttpPipelinePolicy)} have been set. | |||
*/ | |||
public ConfigurationClient buildClient() { | |||
return new ConfigurationClient(buildInnerClient(), DEFAULT_SYNC_TOKEN_POLICY); | |||
return new ConfigurationClient(buildInnerClient(), new SyncTokenPolicy()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the SyncTokenPolicy
used in the pipeline and the one passed to the ConigurationClient need to be the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SyncTokenPolicy needs to be the same object. Updated.
...pconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationClientBuilder.java
Outdated
Show resolved
Hide resolved
...pconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationClientBuilder.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes for SyncTokenPolicy look good
Description
SyncTokenPolicy should be exist as a single standalone object per Configuration client but not shared cross clients.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines