@autofleet/rabbit 2.1.8-beta1 → 2.1.8-beta3
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/dump.rdb +0 -0
- package/package.json +1 -1
- package/src/index.ts +3 -3
package/dump.rdb
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import moment from 'moment';
|
|
|
5
5
|
import { ConfirmChannel, Options } from 'amqplib';
|
|
6
6
|
import { AmqpConnectionManager, ChannelWrapper, connect } from 'amqp-connection-manager';
|
|
7
7
|
import { EventEmitter } from 'events';
|
|
8
|
-
import { newTrace, traceTypes } from '@autofleet/outbreak';
|
|
8
|
+
// import { newTrace, traceTypes } from '@autofleet/outbreak';
|
|
9
9
|
import logger from './logger';
|
|
10
10
|
import RabbitError from './rabbitError';
|
|
11
11
|
import getRedisInstance, { RedisConfig } from './redis';
|
|
@@ -253,7 +253,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
253
253
|
queue,
|
|
254
254
|
async (msg: any) => {
|
|
255
255
|
const parsedMessage = RabbitMq.parseMsg(msg);
|
|
256
|
-
newTrace(traceTypes.RABBIT);
|
|
256
|
+
// newTrace(traceTypes.RABBIT);
|
|
257
257
|
const shouldConsume = await this.shouldConsumeMessageByTimestamp(parsedMessage);
|
|
258
258
|
logger.info('rabbit: trying to consume', { queue, shouldConsume, msg });
|
|
259
259
|
if (!shouldConsume) {
|
|
@@ -284,7 +284,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
284
284
|
queue,
|
|
285
285
|
async (msg: any) => {
|
|
286
286
|
const parsedMessage = RabbitMq.parseMsg(msg);
|
|
287
|
-
newTrace(traceTypes.RABBIT);
|
|
287
|
+
// newTrace(traceTypes.RABBIT);
|
|
288
288
|
const shouldConsume = await this.shouldConsumeMessageByTimestamp(parsedMessage);
|
|
289
289
|
logger.info('rabbit: trying to consume', { queue, shouldConsume, msg });
|
|
290
290
|
if (!shouldConsume) {
|