diff --git a/sentinel-extension/sentinel-datasource-redis/pom.xml b/sentinel-extension/sentinel-datasource-redis/pom.xml index b6dc18bb7d..381f1be662 100644 --- a/sentinel-extension/sentinel-datasource-redis/pom.xml +++ b/sentinel-extension/sentinel-datasource-redis/pom.xml @@ -15,7 +15,7 @@ 1.8 1.8 - 6.2.1.RELEASE + 5.3.1.RELEASE 0.1.6 diff --git a/sentinel-extension/sentinel-datasource-redis/src/main/java/com/alibaba/csp/sentinel/datasource/redis/RedisDataSource.java b/sentinel-extension/sentinel-datasource-redis/src/main/java/com/alibaba/csp/sentinel/datasource/redis/RedisDataSource.java index 65fa635c74..d10bcf08fa 100644 --- a/sentinel-extension/sentinel-datasource-redis/src/main/java/com/alibaba/csp/sentinel/datasource/redis/RedisDataSource.java +++ b/sentinel-extension/sentinel-datasource-redis/src/main/java/com/alibaba/csp/sentinel/datasource/redis/RedisDataSource.java @@ -111,13 +111,13 @@ private SslOptions initSslOptions(RedisConnectionConfig connectionConfig) { if (connectionConfig.getTrustedCertificatesPath() != null){ if (connectionConfig.getTrustedCertificatesPath().endsWith(".jks")){ - // if the value is end with .jks,think it is java key store format,to invoke truststore mthod + // if the value is end with .jks,think it is java key store format,to invoke truststore method sslOptionsBuilder.truststore( new File(connectionConfig.getTrustedCertificatesPath()), connectionConfig.getTrustedCertificatesJksPassword() ); } else { - // if the value is not end with .jks,think it is pem format,to invoke trustManager mthod + // if the value is not end with .jks,think it is pem format,to invoke trustManager method sslOptionsBuilder.trustManager(new File(connectionConfig.getTrustedCertificatesPath())); } }