diff --git a/lib/redis_stream/subscriber.rb b/lib/redis_stream/subscriber.rb index a535565..633c078 100644 --- a/lib/redis_stream/subscriber.rb +++ b/lib/redis_stream/subscriber.rb @@ -15,7 +15,7 @@ def self.listen(streams:, group: nil, consumer: nil, &block) # listen for up to 10 messages forever ids = Array.new(streams.length, ">") - messages = RedisStream.client.xreadgroup(group, consumer, streams, ids, count: 1, block: 0) + messages = RedisStream.client.xreadgroup(group, consumer, streams, ids, count: 1, block: 0, noack: true) messages.each do |stream, stream_messages| stream_messages.each do |message_id, message_hash| diff --git a/lib/redis_stream/version.rb b/lib/redis_stream/version.rb index 29a14fa..381e447 100644 --- a/lib/redis_stream/version.rb +++ b/lib/redis_stream/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RedisStream - VERSION = "0.1.3" + VERSION = "0.1.4" end