Permalink
Browse files

Merge pull request #53 from vivienschilis/works_with_hiredis_0.1

fixed em-hiredis synchrony to support v0.1.0
  • Loading branch information...
2 parents dc2eaf1 + 7c1e9d2 commit f84e141752410d9ed34f8a5d7a2d1e8a6325544b @igrigorik igrigorik committed Aug 29, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/em-synchrony/em-hiredis.rb
@@ -6,12 +6,11 @@
module EventMachine
module Hiredis
- class Connection
- attr_reader :connected
+ class Client
def self.connect(host = 'localhost', port = 6379)
conn = new(host, port)
- EM::Synchrony.sync conn
+ EM::Synchrony.sync conn.connect
conn
end

0 comments on commit f84e141

Please sign in to comment.