redpack 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/rblib/redpack/transport.rb +1 -2
- metadata +1 -1
data/rblib/redpack/transport.rb
CHANGED
@@ -60,12 +60,11 @@ class RedisClientTransport
|
|
60
60
|
# puts "done waiting for #{@return_queue_name}"
|
61
61
|
if data && data[1]
|
62
62
|
begin
|
63
|
-
# redis_packet = MessagePack.unpack(data[1])
|
64
63
|
redis_packet = BSON.deserialize(data[1])
|
65
64
|
msg = redis_packet["data"]
|
66
65
|
if msg
|
67
66
|
if msg[0] == RESPONSE
|
68
|
-
on_response(msg[1], msg[2], msg[3])
|
67
|
+
on_response(msg[1].to_i, msg[2], msg[3])
|
69
68
|
else
|
70
69
|
puts "unknown message type #{msg[0]}"
|
71
70
|
end
|