Skip to content

Commit

Permalink
Type-cast the Pipeline object in JedisSentineled
Browse files Browse the repository at this point in the history
This is an expansion of redis#3221, as well as redis#3240. This is requested in redis#3516.
  • Loading branch information
sazzad16 committed Aug 31, 2023
1 parent c920bb3 commit cbc3372
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 cbc3372

Please sign in to comment.