Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk Examples
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
elixxir
xxdk Examples
Commits
421cee2d
Commit
421cee2d
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
more cleanup
parent
6d4dfd74
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
connectClient/listener.go
+1
-1
1 addition, 1 deletion
connectClient/listener.go
connectClient/main.go
+1
-0
1 addition, 0 deletions
connectClient/main.go
with
2 additions
and
1 deletion
connectClient/listener.go
+
1
−
1
View file @
421cee2d
...
...
@@ -13,7 +13,7 @@ type listener struct {
// Hear will be called whenever a message matching
// the RegisterListener call is received
//
M
essage handling logic goes here
//
User-defined m
essage handling logic goes here
func
(
l
listener
)
Hear
(
item
receive
.
Message
)
{
jww
.
INFO
.
Printf
(
"Message received: %v"
,
item
)
}
...
...
This diff is collapsed.
Click to expand it.
connectClient/main.go
+
1
−
0
View file @
421cee2d
...
...
@@ -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"
,
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment