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
6f5f0fc7
Commit
6f5f0fc7
authored
5 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
added some logs
parent
5826ba82
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/connect.go
+13
-5
13 additions, 5 deletions
api/connect.go
with
13 additions
and
5 deletions
api/connect.go
+
13
−
5
View file @
6f5f0fc7
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2020 Privategrity Corporation /
// /
// All rights reserved. /
////////////////////////////////////////////////////////////////////////////////
package
api
import
(
"fmt"
"github.com/pkg/errors"
jww
"github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/globals"
"gitlab.com/elixxir/client/io"
"gitlab.com/elixxir/comms/connect"
...
...
@@ -53,9 +60,8 @@ func (cl *Client) DisableTls() {
cl
.
receptionManager
.
Tls
=
false
}
// Begin client version checks via registration server
func
(
cl
*
Client
)
setupPermissioning
()
error
{
// Permissioning was found in ndf run corresponding code
//Get remote version and update
ver
,
err
:=
cl
.
receptionManager
.
GetRemoteVersion
()
if
err
!=
nil
{
...
...
@@ -80,9 +86,9 @@ func (cl *Client) setupPermissioning() error {
return
err
}
if
!
ok
{
err
=
errors
.
New
(
fmt
.
Sprint
f
(
"Couldn't connect to gateways: Versions
incompatible; Local version: %v; remote version: %v"
,
globals
.
SEMVER
,
cl
.
GetRegistrationVersion
()))
return
err
return
errors
.
Error
f
(
"Couldn't connect to gateways: Versions
"
+
" incompatible; Local version: %v; remote version: %v"
,
globals
.
SEMVER
,
cl
.
GetRegistrationVersion
())
}
}
else
{
globals
.
Log
.
WARN
.
Printf
(
"Not checking version from "
+
...
...
@@ -90,6 +96,8 @@ func (cl *Client) setupPermissioning() error {
"access to the registration server?"
)
}
jww
.
DEBUG
.
Printf
(
"Local version: %v; Remote version: %v"
,
globals
.
SEMVER
,
cl
.
GetRegistrationVersion
())
return
nil
}
...
...
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