1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Merge pull request #1388 from gkorland/patch-1

Added 'NOACK' to xreadgroup call
This commit is contained in:
Kyle J. Davis
2018-11-15 13:46:44 +00:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ 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);
@@ -23,7 +23,7 @@ client1.xadd('mystream', '*', 'field1', 'm1', function (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);