Skip to content

Commit

Permalink
publish with correct routing key
Browse files Browse the repository at this point in the history
  • Loading branch information
ochom committed Oct 23, 2024
1 parent 6139cbc commit 589d876
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 228 deletions.
8 changes: 4 additions & 4 deletions pubsub/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ func (p *publisher) publish(body []byte, delay time.Duration) error {

// publish message to exchange
err = channel.Publish(
p.exchange, // exchange
"", // routing key
true, // mandatory
false, // immediate
p.exchange, // exchange
p.routingKey, // routing key
true, // mandatory
false, // immediate
amqp.Publishing{
ContentType: "application/json",
Body: body,
Expand Down
94 changes: 0 additions & 94 deletions quickmq/client.go

This file was deleted.

97 changes: 0 additions & 97 deletions quickmq/client_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions quickmq/quickmq.go

This file was deleted.

0 comments on commit 589d876

Please sign in to comment.