Skip to content

Commit

Permalink
Update broker.go
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Jul 15, 2020
1 parent ef23479 commit c2bb4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/amqp/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (b *Broker) Serve() (err error) {
defer b.consume.Close()

for _, q := range b.queues {
err := q.declare(b.publish, q.name, q.name, nil)
err := q.declare(b.publish, q.name, q.key, nil)
if err != nil {
b.mu.Unlock()
return err
Expand Down

0 comments on commit c2bb4a1

Please sign in to comment.