lib/bunny/queue.rb in celldee-bunny-0.0.3 vs lib/bunny/queue.rb in celldee-bunny-0.0.4
- old
+ new
@@ -34,10 +34,10 @@
header = client.next_payload
msg = client.next_payload
raise 'unexpected length' if msg.length < header.size
if hdr
- [header, msg]
+ {:header => header, :payload => msg}
else
msg
end
end
\ No newline at end of file