Permalink
Browse files

Remove the option for :thread_safe.

  • Loading branch information...
1 parent 78b073b commit 619fe28104ebb08f88802bae4e9b99769c93f722 @cyx cyx committed Mar 12, 2012
Showing with 1 addition and 10 deletions.
  1. +1 −10 lib/redis.rb
View
@@ -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 619fe28

Please sign in to comment.