Skip to content

Commit f73d411

Browse files
committed
111
1 parent 19ac343 commit f73d411

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

OpenFlow/src/amqpwrapper.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ export class amqpwrapper {
234234
q.queue = "";
235235
}
236236
q.callback = callback;
237-
q.QueueOptions = new Object((QueueOptions != null ? QueueOptions : this.AssertQueueOptions));
237+
// q.QueueOptions = new Object((QueueOptions != null ? QueueOptions : this.AssertQueueOptions));
238+
q.QueueOptions = Object.assign({}, (QueueOptions != null ? QueueOptions : this.AssertQueueOptions));
238239
if (Util.IsNullEmpty(queue)) queue = "";
239240
if (queue.startsWith("amq.")) queue = "";
240241
if (Util.IsNullEmpty(queue)) q.QueueOptions.autoDelete = true;
@@ -266,7 +267,8 @@ export class amqpwrapper {
266267
if (!Util.IsNullEmpty(q.queue)) {
267268
delete this.queues[q.queue];
268269
}
269-
q.ExchangeOptions = new Object((ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
270+
// q.ExchangeOptions = new Object((ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
271+
q.ExchangeOptions = Object.assign({}, (ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
270272
q.exchange = exchange; q.algorithm = algorithm; q.routingkey = routingkey; q.callback = callback;
271273
this._ok = await this.channel.assertExchange(q.exchange, q.algorithm, q.ExchangeOptions);
272274
var AssertQueueOptions = null;

0 commit comments

Comments
 (0)