Sha256: a7ae0bfebebfd302171638a1ff41a52f726ca8a8af6b09c3c34864c37d05acf5
Contents?: true
Size: 444 Bytes
Versions: 4
Compression:
Stored size: 444 Bytes
Contents
module RabbitFeed module Consumer extend self attr_accessor :event_routing def run ConsumerConnection.instance.consume do |raw_event| event = Event.deserialize raw_event RabbitFeed.log.info { { event: :message_received, metadata: event.metadata } } event_routing.handle_event event RabbitFeed.log.info { { event: :message_processed, metadata: event.metadata } } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rabbit_feed-3.0.3 | lib/rabbit_feed/consumer.rb |
rabbit_feed-3.0.2 | lib/rabbit_feed/consumer.rb |
rabbit_feed-3.0.1 | lib/rabbit_feed/consumer.rb |
rabbit_feed-3.0.0 | lib/rabbit_feed/consumer.rb |