Skip to content

Commit

Permalink
Added 'NOACK' to xreadgroup call
Browse files Browse the repository at this point in the history
Added 'NOACK' to xreadgroup call, to make sure entries are auto ACK
  • Loading branch information
gkorland committed Nov 14, 2018
1 parent 49a635d commit 383f097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/streams.js
Expand Up @@ -15,15 +15,15 @@ client1.xadd('mystream', '*', 'field1', 'm1', function (err) {
}
});

client2.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000,
client2.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000, 'NOACK',
'STREAMS', 'mystream', '>', function (err, stream) {
if(err){
return console.error(err);
}
console.log('client2 ' + stream);
});

client3.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000,
client3.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000, 'NOACK',
'STREAMS', 'mystream', '>', function (err, stream) {
if(err){
return console.error(err);
Expand Down

0 comments on commit 383f097

Please sign in to comment.