Update index.js

This commit is contained in:
sairajzero 2023-01-28 01:46:39 +05:30
parent 09a934f65b
commit 69a829a6eb

View File

@ -737,7 +737,7 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
}, 4);
q.empty(() => console.debug("Q-EMPTY"));
q.empty = () => console.debug("Q-EMPTY");
q.pause(); //pause and wait until queue is set
@ -806,9 +806,11 @@ AddressService.prototype._streamAddressSummary = function(address, options, stre
var txidStream = self._getTxidStream(address, options);
txidStream.pipe(txIdTransformStream);
await q.drain();
console.debug("Q-DRAIN");
next();
q.drain = function(){
console.debug("Q-DRAIN");
next();
};
}
], callback);