Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container 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
Show more breadcrumbs
elixxir
client
Commits
97ba3567
Commit
97ba3567
authored
5 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
minor error fix
parent
0e356be3
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
api/register.go
+9
-5
9 additions, 5 deletions
api/register.go
with
9 additions
and
5 deletions
api/register.go
+
9
−
5
View file @
97ba3567
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2020 Privategrity Corporation /
// /
// All rights reserved. /
////////////////////////////////////////////////////////////////////////////////
package
api
import
(
...
...
@@ -111,12 +117,10 @@ func (cl *Client) RegisterWithUDB(username string, timeout time.Duration) error
publicKeyBytes
:=
cl
.
session
.
GetE2EDHPublicKey
()
.
Bytes
()
err
=
bots
.
Register
(
valueType
,
username
,
publicKeyBytes
,
cl
.
opStatus
,
timeout
)
if
err
==
nil
{
globals
.
Log
.
INFO
.
Printf
(
"Registered with UDB!"
)
}
else
{
globals
.
Log
.
WARN
.
Printf
(
"Could not register with UDB: %s"
,
err
)
if
err
!=
nil
{
return
errors
.
Errorf
(
"Could not register with UDB: %s"
,
err
)
}
globals
.
Log
.
INFO
.
Printf
(
"Registered with UDB!"
)
}
else
{
globals
.
Log
.
INFO
.
Printf
(
"Not registering with UDB because no "
+
"email found"
)
...
...
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