redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
18 lines • 724 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports._getQueueFanOutExchange = _getQueueFanOutExchange;
const redis_smq_common_1 = require("redis-smq-common");
const _get_queue_properties_js_1 = require("../../../queue/_/_get-queue-properties.js");
function _getQueueFanOutExchange(redisClient, queue, cb) {
(0, _get_queue_properties_js_1._getQueueProperties)(redisClient, queue, (err, reply) => {
if (err)
cb(err);
else if (!reply)
cb(new redis_smq_common_1.CallbackEmptyReplyError());
else {
const eName = reply.exchange;
cb(null, eName);
}
});
}
//# sourceMappingURL=_get-queue-fan-out-exchange.js.map
;