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
61d19b79
Commit
61d19b79
authored
Jul 19, 2019
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix gateway input
parent
09e94f5e
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
cmd/root.go
+7
-12
7 additions, 12 deletions
cmd/root.go
with
7 additions
and
12 deletions
cmd/root.go
+
7
−
12
View file @
61d19b79
...
@@ -133,18 +133,13 @@ func sessionInitialization() *id.User {
...
@@ -133,18 +133,13 @@ func sessionInitialization() *id.User {
client
.
SetRateLimiting
(
rateLimiting
)
client
.
SetRateLimiting
(
rateLimiting
)
// Handle parsing gateway addresses from the config file
// Handle parsing gateway addresses from the config file
gateways
:=
viper
.
GetStringSlice
(
"gateways"
)
gateways
:=
ndfJSON
.
Gateways
if
len
(
gwAddresses
)
<
1
{
// If gwAddr was not passed via command line, check config file
// If gwAddr was not passed via command line, check config file
if
len
(
gateways
)
<
1
{
if
len
(
gateways
)
<
1
{
// No gateways in config file or passed via command line
// No gateways in config file or passed via command line
globals
.
Log
.
ERROR
.
Printf
(
"Error: No gateway specified! Add to"
+
globals
.
Log
.
ERROR
.
Printf
(
"Error: No gateway specified! Add to"
+
" configuration file or pass via command line using -g!
\n
"
)
" configuration file or pass via command line using -g!
\n
"
)
return
id
.
ZeroID
return
id
.
ZeroID
}
else
{
// List of gateways found in config file
gwAddresses
=
gateways
}
}
}
// Connect to gateways and reg server
// Connect to gateways and reg server
...
...
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