Skip to content

Commit 45e7f31

Browse files
committed
fixed declaring exchange not setting arguments
1 parent 438a235 commit 45e7f31

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/rabbitmqamqp/amqp_exchange.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ func (e *AmqpExchange) AutoDelete(isAutoDelete bool) {
6161
e.isAutoDelete = isAutoDelete
6262
}
6363

64+
func (e *AmqpExchange) Arguments(arguments map[string]any) {
65+
e.arguments = arguments
66+
}
67+
6468
func (e *AmqpExchange) IsAutoDelete() bool {
6569
return e.isAutoDelete
6670
}

pkg/rabbitmqamqp/amqp_management.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ func (a *AmqpManagement) DeclareExchange(ctx context.Context, exchangeSpecificat
200200
exchange := newAmqpExchange(a, exchangeSpecification.name())
201201
exchange.AutoDelete(exchangeSpecification.isAutoDelete())
202202
exchange.ExchangeType(exchangeSpecification.exchangeType())
203+
exchange.Arguments(exchangeSpecification.arguments())
203204
return exchange.Declare(ctx)
204205
}
205206

0 commit comments

Comments
 (0)