Skip to content

Commit

Permalink
Keep things quacking the same
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed May 17, 2012
1 parent e06ec87 commit 413e18a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/redis/client.rb
Expand Up @@ -235,8 +235,8 @@ def with_reconnect(val=true)
end
end

def without_reconnect(val=true, &blk)
with_reconnect(!val, &blk)
def without_reconnect(&blk)
with_reconnect(false, &blk)
end

protected
Expand Down
6 changes: 3 additions & 3 deletions lib/redis/pipeline.rb
Expand Up @@ -45,12 +45,12 @@ def commands
@futures.map { |f| f._command }
end

def with_reconnect(&block)
@with_reconnect = true
def with_reconnect(val=true)
@with_reconnect = val
yield
end

def without_reconnect(&block)
def without_reconnect
@with_reconnect = false
yield
end
Expand Down

0 comments on commit 413e18a

Please sign in to comment.