Skip to content

Commit

Permalink
Type-cast the Pipeline object in JedisSentineled (#3517)
Browse files Browse the repository at this point in the history
This is an expansion of #3221, as well as #3240. This is requested in #3516.
  • Loading branch information
sazzad16 authored Aug 31, 2023
1 parent c920bb3 commit 58c375e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/redis/clients/jedis/JedisSentineled.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public JedisSentineled(SentineledConnectionProvider sentineledConnectionProvider
public HostAndPort getCurrentMaster() {
return ((SentineledConnectionProvider) provider).getCurrentMaster();
}

@Override
public Pipeline pipelined() {
return (Pipeline) super.pipelined();
}
}

0 comments on commit 58c375e

Please sign in to comment.