Permalink
Browse files

Merge pull request #188 from cyx/master

Remove the option for thread_safe
  • Loading branch information...
2 parents 78b073b + 619fe28 commit 578c01f40a31b12c14d022fd3c3445f5dee89bf2 @pietern pietern committed Mar 13, 2012
Showing with 1 addition and 10 deletions.
  1. +1 −10 lib/redis.rb
View
11 lib/redis.rb
@@ -43,16 +43,7 @@ def self.current=(redis)
def initialize(options = {})
@client = Client.new(options)
- if options[:thread_safe] == false
- @synchronizer = lambda { |&block| block.call }
- else
- @synchronizer = lambda { |&block| mon_synchronize { block.call } }
- super() # Monitor#initialize
- end
- end
-
- def synchronize
- @synchronizer.call { yield }
+ super() # Monitor#initialize
end
# Run code without the client reconnecting

0 comments on commit 578c01f

Please sign in to comment.