You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Added 'NOACK' to xreadgroup call
Added 'NOACK' to xreadgroup call, to make sure entries are auto ACK
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user