Skip to content

Commit aeb416d

Browse files
authored
pass read_from_replicas arg when creating pipeline
This will allow us to take advantage of `read_from_replicas` support on pipelines when Grokzen/redis-py-cluster#450 is merged
1 parent b904a82 commit aeb416d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

baseplate/clients/redis_cluster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def pipeline(self, name: str) -> "MonitoredClusterRedisPipeline":
195195
self.server_span,
196196
self.connection_pool,
197197
self.response_callbacks,
198+
read_from_replicas=self.read_from_replicas,
198199
)
199200

200201
# No transaction support in redis-py-cluster

0 commit comments

Comments
 (0)