Skip to content

Commit 58c375e

Browse files
authored
Type-cast the Pipeline object in JedisSentineled (#3517)
This is an expansion of #3221, as well as #3240. This is requested in #3516.
1 parent c920bb3 commit 58c375e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/redis/clients/jedis/JedisSentineled.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ public JedisSentineled(SentineledConnectionProvider sentineledConnectionProvider
2424
public HostAndPort getCurrentMaster() {
2525
return ((SentineledConnectionProvider) provider).getCurrentMaster();
2626
}
27+
28+
@Override
29+
public Pipeline pipelined() {
30+
return (Pipeline) super.pipelined();
31+
}
2732
}

0 commit comments

Comments
 (0)