Skip to content
New issue

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

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

Already on GitHub? # to your account

changed AddNoPublisherHandler signature #82

Merged
merged 3 commits into from
Jun 1, 2019

Conversation

roblaszczak
Copy link
Member

No description provided.

message/router.go Outdated Show resolved Hide resolved
@@ -30,6 +30,9 @@ var (
// (because msg.Ack() was sent in HandlerFunc or Subscriber supports multiple consumers).
type HandlerFunc func(msg *Message) ([]*Message, error)

// NoPublishHandlerFunc is HandlerFunc alternative, which doesn't produce any message.
type NoPublishHandlerFunc func(msg *Message) error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ReadOnlyHandlerFunc or ConsumeOnlyHandlerFunc?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds better @maclav3 ? and does we want to also change AddNoPublisherHandler?

Co-Authored-By: Miłosz Smółka <milosz.smolka@gmail.com>
@roblaszczak roblaszczak merged commit b00ac54 into master Jun 1, 2019
@roblaszczak roblaszczak deleted the changed-AddNoPublisherHandler-signature branch September 11, 2019 21:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants