File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class AmqpBase {
21
21
wrapped = manager .createChannel ({
22
22
setup : channel -> {
23
23
Promise .inParallel ([for (exchange in config .exchanges ) Promise .ofJsPromise (channel .assertExchange (exchange .name , exchange .type ))])
24
- .next (_ -> Promise .inParallel ([for (queue in config .queues ) Promise .ofJsPromise (channel .assertQueue (queue .name ))]))
24
+ .next (_ -> Promise .inParallel ([for (queue in config .queues ) Promise .ofJsPromise (channel .assertQueue (queue .name , queue . options ))]))
25
25
.next (_ -> Promise .inParallel ([for (queue in config .queues ) for (binding in queue .bindings ) Promise .ofJsPromise (channel .bindQueue (queue .name , binding .exchange , binding .pattern ))]))
26
26
.noise ()
27
27
.map (o -> {
@@ -49,6 +49,7 @@ typedef ExchangeConfig = {
49
49
}
50
50
typedef QueueConfig = {
51
51
final name : String ;
52
+ final ? options : amqp. AmqpChannel . AmpqAssertQueueOptions ;
52
53
final bindings : Array <BindingConfig >;
53
54
}
54
55
typedef BindingConfig = {
You can’t perform that action at this time.
0 commit comments