Skip to content

Commit

Permalink
Simplify ElastiCacheClient initialization using create() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jithendar12 committed Sep 6, 2024
1 parent a75b73f commit ba076c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private Stack getRedisStack()
*/
private Endpoint getRedisInstanceData(String redisName, boolean isCluster)
{
ElastiCacheClient elastiCacheClient = ElastiCacheClient.builder().build();
ElastiCacheClient elastiCacheClient = ElastiCacheClient.create();
try {
if (isCluster) {
DescribeReplicationGroupsRequest describeRequest = DescribeReplicationGroupsRequest.builder()
Expand Down

0 comments on commit ba076c4

Please sign in to comment.