Skip to content

Commit

Permalink
Merge pull request #1236 from zendesk/ktsanaktsidis/pass_watch
Browse files Browse the repository at this point in the history
Pass watch: kwarg to #multi calls on clients
  • Loading branch information
byroot committed Nov 15, 2023
2 parents 2b183ad + a0c1ede commit 6729fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cluster/lib/redis/cluster/client.rb
Expand Up @@ -70,8 +70,8 @@ def pipelined(&block)
handle_errors { super(&block) }
end

def multi(&block)
handle_errors { super(&block) }
def multi(watch: nil, &block)
handle_errors { super(watch: watch, &block) }
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/redis/client.rb
Expand Up @@ -111,7 +111,7 @@ def pipelined
Client.translate_error!(error)
end

def multi
def multi(watch: nil)
super
rescue ::RedisClient::Error => error
Client.translate_error!(error)
Expand Down

0 comments on commit 6729fc8

Please sign in to comment.