redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
18 lines • 811 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExchangeAbstract = void 0;
const redis_smq_common_1 = require("redis-smq-common");
const redis_client_js_1 = require("../../common/redis-client/redis-client.js");
const index_js_1 = require("../../config/index.js");
class ExchangeAbstract {
constructor() {
this.shutdown = (cb) => {
this.redisClient.shutdown(cb);
};
this.logger = redis_smq_common_1.logger.getLogger(index_js_1.Configuration.getSetConfig().logger, this.constructor.name.toLowerCase());
this.redisClient = new redis_client_js_1.RedisClient();
this.redisClient.on('error', (err) => this.logger.error(err));
}
}
exports.ExchangeAbstract = ExchangeAbstract;
//# sourceMappingURL=exchange-abstract.js.map