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
6d4dfd74
Commit
6d4dfd74
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
more cleanup
parent
1438996e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
connectClient/main.go
+3
-4
3 additions, 4 deletions
connectClient/main.go
with
3 additions
and
4 deletions
connectClient/main.go
+
3
−
4
View file @
6d4dfd74
...
...
@@ -3,7 +3,6 @@ package main
import
(
"errors"
"fmt"
jww
"github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/catalog"
"gitlab.com/elixxir/client/xxdk"
...
...
@@ -103,7 +102,7 @@ func main() {
networkFollowerTimeout
:=
5
*
time
.
Second
err
=
baseClient
.
StartNetworkFollower
(
networkFollowerTimeout
)
if
err
!=
nil
{
fmt
.
Print
f
(
"Failed to start network follower: %+v"
,
err
)
jww
.
FATAL
.
Panic
f
(
"Failed to start network follower: %+v"
,
err
)
}
// Set up a wait for the network to be connected
...
...
@@ -170,10 +169,10 @@ func main() {
// Send a message to the server----------------------------------------------------
// Test message
msgBody
:=
"If this message is sent successfully, we'll have established
first
contact with
aliens
."
msgBody
:=
"If this message is sent successfully, we'll have established contact with
the server
."
roundIDs
,
messageID
,
timeSent
,
err
:=
handler
.
SendE2E
(
catalog
.
XxMessage
,
[]
byte
(
msgBody
),
params
.
Base
)
if
err
!=
nil
{
fmt
.
Print
f
(
"Failed to send message: %+v"
,
err
)
jww
.
FATAL
.
Panic
f
(
"Failed to send message: %+v"
,
err
)
}
jww
.
INFO
.
Printf
(
"Message %v sent in RoundIDs: %+v at %v"
,
messageID
,
roundIDs
,
timeSent
)
...
...
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