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

util: Align AdvancedTlsX509{Key and Trust}Manager #11385

Merged
merged 7 commits into from
Jul 16, 2024

Conversation

erm-g
Copy link
Contributor

@erm-g erm-g commented Jul 12, 2024

@@ -339,8 +339,8 @@ public void onFileReloadingKeyManagerTrustManagerTest() throws Exception {
AdvancedTlsX509TrustManager serverTrustManager = AdvancedTlsX509TrustManager.newBuilder()
.setVerification(Verification.CERTIFICATE_ONLY_VERIFICATION)
.build();
Closeable serverTrustShutdown = serverTrustManager.updateTrustCredentialsFromFile(caCertFile,
100, TimeUnit.MILLISECONDS, executor);
Closeable serverTrustShutdown = serverTrustManager.updateTrustCredentials(caCertFile,100,
Copy link
Member

Choose a reason for hiding this comment

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

Add a space before 100. Ditto elsewhere.

FWIW, I'll commonly linewrap before the 100, to keep it together with its unit. Although it seems you are purposefully doing the opposite, as late in the file you could have TimeUnit on the same line and you chose not to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, missed the spaces because of IDE param name hints:
Image 7-16-24 at 11 17 AM
Will keep it disabled.
I like the idea of having value + unit on the same line, also fixed it.

@erm-g erm-g merged commit 516dec9 into grpc:master Jul 16, 2024
13 checks passed
larry-safran pushed a commit to larry-safran/grpc-java that referenced this pull request Aug 13, 2024
* Swap internal key/cert args

* Deprecate *FromFile methods

* Test for client trusted socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants