|
|
|
@ -24,7 +24,8 @@ import { Options, Replies } from 'amqplib/properties'; |
|
|
|
export class RabbitMqTemplate implements IQueue { |
|
|
|
|
|
|
|
private logger = _logger(`rabbitmqTemplate`); |
|
|
|
private requestTopic: string = config.get('request_topic'); |
|
|
|
private queuePrefix: string = config.get('queue_prefix'); |
|
|
|
private requestTopic: string = this.queuePrefix ? this.queuePrefix + "." + config.get('request_topic') : config.get('request_topic'); |
|
|
|
private host = config.get('rabbitmq.host'); |
|
|
|
private port = config.get('rabbitmq.port'); |
|
|
|
private vhost = config.get('rabbitmq.virtual_host'); |
|
|
|
|