@514labs/moose-lib 0.6.252-ci-2-g41538689 → 0.6.252-ci-3-gf88b2b20
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/dist/moose-runner.js
CHANGED
|
@@ -2042,15 +2042,15 @@ var handleDLQForFailedMessages = async (logger2, producer, messages, error) => {
|
|
|
2042
2042
|
};
|
|
2043
2043
|
var sendMessages = async (logger2, metrics, targetTopic, producer, messages) => {
|
|
2044
2044
|
if (messages.length === 0) return;
|
|
2045
|
-
for (const msg of messages) {
|
|
2046
|
-
metrics.bytes += import_node_buffer.Buffer.byteLength(msg.value, "utf8");
|
|
2047
|
-
}
|
|
2048
|
-
metrics.count_out += messages.length;
|
|
2049
2045
|
try {
|
|
2050
2046
|
await producer.send({
|
|
2051
2047
|
topic: targetTopic.name,
|
|
2052
2048
|
messages
|
|
2053
2049
|
});
|
|
2050
|
+
for (const msg of messages) {
|
|
2051
|
+
metrics.bytes += import_node_buffer.Buffer.byteLength(msg.value, "utf8");
|
|
2052
|
+
}
|
|
2053
|
+
metrics.count_out += messages.length;
|
|
2054
2054
|
logger2.log(`Sent ${messages.length} messages to ${targetTopic.name}`);
|
|
2055
2055
|
} catch (e) {
|
|
2056
2056
|
logger2.error(`Failed to send transformed data`);
|