We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Moving PubSub subscription declaration to service subpackage results in handler not being fired when new messages are published to the topic.
Considering the following payment service structure:
payment
payment ├── event │ └── event.go └── pubsub.go
With event.go in event subpackage, declaring the subscription:
event.go
event
var _ = pubsub.NewSubscription( event.Orders, "payment-orders-sub", pubsub.SubscriptionConfig[*event.OrderEvent]{ Handler: payment.OrderEventHandler, }, )
The payment.OrderEventHandler is not fired, but if subscription is moved back to pubsub.go in payment package, it works properly.
payment.OrderEventHandler
pubsub.go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Moving PubSub subscription declaration to service subpackage results in handler not being fired when new messages are published to the topic.
Considering the following
payment
service structure:With
event.go
inevent
subpackage, declaring the subscription:The
payment.OrderEventHandler
is not fired, but if subscription is moved back topubsub.go
inpayment
package, it works properly.The text was updated successfully, but these errors were encountered: