We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678cf29 commit 7eb15bdCopy full SHA for 7eb15bd
packages/pubsub/src/subscription.js
@@ -608,15 +608,15 @@ Subscription.prototype.flushQueues_ = function() {
608
if (acks.length) {
609
requests.push(
610
this.acknowledge_(acks).then(function() {
611
- self.inventory_.ack.length = 0;
+ self.inventory_.ack = [];
612
})
613
);
614
}
615
616
if (nacks.length) {
617
618
this.modifyAckDeadline_(nacks, 0).then(function() {
619
- self.inventory_.nack.length = 0;
+ self.inventory_.nack = [];
620
621
622
0 commit comments