Skip to content

Conversation

taills
Copy link

@taills taills commented Oct 17, 2025

This pull request improves the unsubscribe logic in the messageBus by making handler matching more precise and providing clearer error reporting when unsubscribing from a topic.

Error handling improvements:

  • Updated the handler comparison in func (b *messageBus) Unsubscribe to use pointer equality (Pointer()), ensuring that the correct handler is identified and unsubscribed.
  • Added specific error messages when a handler is not found for a topic or when the topic itself does not exist, making debugging easier.

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

Successfully merging this pull request may close these issues.

1 participant