Permalink
Browse files

Made both locks autoloads

They're probably not used by most people
  • Loading branch information...
1 parent d47d993 commit 42f3bb8c21d59c03234920f9b74354cc66fafcc0 @mloughran committed Feb 8, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/em-hiredis.rb
View
@@ -41,6 +41,9 @@ def self.logger
log
end
end
+
+ autoload :Lock, 'em-hiredis/lock'
+ autoload :PersistentLock, 'em-hiredis/persistent_lock'
end
end
@@ -49,5 +52,3 @@ def self.logger
require 'em-hiredis/base_client'
require 'em-hiredis/client'
require 'em-hiredis/pubsub_client'
-require 'em-hiredis/lock'
-require 'em-hiredis/persistent_lock'

0 comments on commit 42f3bb8

Please sign in to comment.