Skip to content

Commit

Permalink
pass read_from_replicas arg when creating pipeline
Browse files Browse the repository at this point in the history
This will allow us to take advantage of `read_from_replicas` support on pipelines when Grokzen/redis-py-cluster#450 is merged
  • Loading branch information
FranGM authored Apr 20, 2021
1 parent b904a82 commit aeb416d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions baseplate/clients/redis_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def pipeline(self, name: str) -> "MonitoredClusterRedisPipeline":
self.server_span,
self.connection_pool,
self.response_callbacks,
read_from_replicas=self.read_from_replicas,
)

# No transaction support in redis-py-cluster
Expand Down

0 comments on commit aeb416d

Please sign in to comment.