@nitra/nats 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/pending-count.js +5 -1
- package/src/read-m.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
package/src/pending-count.js
CHANGED
|
@@ -17,7 +17,11 @@ export async function getPendingCount(consumer) {
|
|
|
17
17
|
|
|
18
18
|
try {
|
|
19
19
|
const info = await jsm.consumers.info(stream, consumer)
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
// return info.num_pending + info.num_ack_pending
|
|
22
|
+
|
|
23
|
+
// Тільки не взяті ніким повідомлення
|
|
24
|
+
return info.num_pending
|
|
21
25
|
} catch (error) {
|
|
22
26
|
// Перевірити що це ClosedConnectionError
|
|
23
27
|
if (error instanceof ClosedConnectionError) {
|
package/src/read-m.js
CHANGED