Skip to content
Snippets Groups Projects
Commit 421cee2d authored by Jake Taylor's avatar Jake Taylor
Browse files

more cleanup

parent 6d4dfd74
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ type listener struct {
// Hear will be called whenever a message matching
// the RegisterListener call is received
// Message handling logic goes here
// User-defined message handling logic goes here
func (l listener) Hear(item receive.Message) {
jww.INFO.Printf("Message received: %v", item)
}
......
......@@ -159,6 +159,7 @@ func main() {
// Register a listener for messages--------------------------------------------------
// Listen for all types of messages using catalog.NoType
// User-defined behavior for message reception goes in the listener
_, err = handler.RegisterListener(catalog.NoType, listener{
name: "e2e Message Listener",
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment