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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
c83858bf
Commit
c83858bf
authored
Apr 12, 2019
by
Bernardo Cardoso
Browse files
Options
Downloads
Patches
Plain Diff
Last small fixes after running integration
parent
b9013bef
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
api/client.go
+1
-1
1 addition, 1 deletion
api/client.go
cmd/root.go
+2
-1
2 additions, 1 deletion
cmd/root.go
with
3 additions
and
2 deletions
api/client.go
+
1
−
1
View file @
c83858bf
...
@@ -53,7 +53,7 @@ func FormatTextMessage(message string) []byte {
...
@@ -53,7 +53,7 @@ func FormatTextMessage(message string) []byte {
func
NewClient
(
s
globals
.
Storage
,
loc
string
)
(
*
Client
,
error
)
{
func
NewClient
(
s
globals
.
Storage
,
loc
string
)
(
*
Client
,
error
)
{
var
store
globals
.
Storage
var
store
globals
.
Storage
if
s
==
nil
{
if
s
==
nil
{
globals
.
Log
.
WARN
.
Printf
(
"No storage provided,"
+
globals
.
Log
.
INFO
.
Printf
(
"No storage provided,"
+
" initializing Client with default storage"
)
" initializing Client with default storage"
)
store
=
&
globals
.
DefaultStorage
{}
store
=
&
globals
.
DefaultStorage
{}
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
cmd/root.go
+
2
−
1
View file @
c83858bf
...
@@ -22,6 +22,7 @@ import (
...
@@ -22,6 +22,7 @@ import (
"gitlab.com/elixxir/client/parse"
"gitlab.com/elixxir/client/parse"
"gitlab.com/elixxir/client/user"
"gitlab.com/elixxir/client/user"
"gitlab.com/elixxir/comms/connect"
"gitlab.com/elixxir/comms/connect"
"gitlab.com/elixxir/crypto/certs"
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/elixxir/primitives/format"
"gitlab.com/elixxir/primitives/format"
"gitlab.com/elixxir/primitives/id"
"gitlab.com/elixxir/primitives/id"
...
@@ -142,7 +143,7 @@ func sessionInitialization() {
...
@@ -142,7 +143,7 @@ func sessionInitialization() {
// Log the user in
// Log the user in
uid
:=
id
.
NewUserFromUint
(
userId
,
nil
)
uid
:=
id
.
NewUserFromUint
(
userId
,
nil
)
_
,
err
=
client
.
Login
(
uid
,
gwAddr
,
""
)
_
,
err
=
client
.
Login
(
uid
,
gwAddr
,
certs
.
GatewayTLS
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"Could Not Log In
\n
"
)
fmt
.
Printf
(
"Could Not Log In
\n
"
)
...
...
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