Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made both locks autoloads

They're probably not used by most people
  • Loading branch information...
commit 42f3bb8c21d59c03234920f9b74354cc66fafcc0 1 parent d47d993
@mloughran authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/em-hiredis.rb
View
5 lib/em-hiredis.rb
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.