Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: KitchenOrderPub will overwrite the configuration of BaristaOrderPub #26

Open
jeffmingup opened this issue Jan 4, 2023 · 0 comments

Comments

@jeffmingup
Copy link

jeffmingup commented Jan 4, 2023

eventPublisher, err := publisher.NewPublisher(connection)

baristaEventPublisher := infras.NewBaristaEventPublisher(eventPublisher)
kitchenEventPublisher := infras.NewKitchenEventPublisher(eventPublisher)

a.KitchenOrderPub.Configure(
pkgPublisher.ExchangeName("kitchen-order-exchange"),
pkgPublisher.BindingKey("kitchen-order-routing-key"),
pkgPublisher.MessageTypeName("kitchen-order-created"),
)
a.Consumer.Configure(
pkgConsumer.ExchangeName("counter-order-exchange"),
pkgConsumer.QueueName("counter-order-queue"),
pkgConsumer.BindingKey("counter-order-routing-key"),
pkgConsumer.ConsumerTag("counter-order-consumer"),
)

Here, KitchenOrderPub will overwrite the configuration of BaristaOrderPub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant