redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
15 lines • 541 B
JavaScript
import { CallbackEmptyReplyError, } from 'redis-smq-common';
import { _getQueueProperties } from '../../../queue/_/_get-queue-properties.js';
export function _getQueueFanOutExchange(redisClient, queue, cb) {
_getQueueProperties(redisClient, queue, (err, reply) => {
if (err)
cb(err);
else if (!reply)
cb(new CallbackEmptyReplyError());
else {
const eName = reply.exchange;
cb(null, eName);
}
});
}
//# sourceMappingURL=_get-queue-fan-out-exchange.js.map