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
da499cbd
Commit
da499cbd
authored
4 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Update all CLI flags
parent
c1d3a701
No related branches found
No related tags found
1 merge request
!23
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/root.go
+5
-5
5 additions, 5 deletions
cmd/root.go
with
5 additions
and
5 deletions
cmd/root.go
+
5
−
5
View file @
da499cbd
...
...
@@ -368,7 +368,7 @@ func initClient() *api.Client {
netParams
.
E2EParams
.
NumRekeys
=
uint16
(
viper
.
GetUint
(
"e2eNumReKeys"
))
netParams
.
ForceHistoricalRounds
=
viper
.
GetBool
(
"forceHistoricalRounds"
)
netParams
.
FastPolling
=
viper
.
GetBool
(
"
fast
Polling"
)
netParams
.
FastPolling
=
viper
.
GetBool
(
"
slow
Polling"
)
//load the client
client
,
err
:=
api
.
Login
(
storeDir
,
[]
byte
(
pass
),
netParams
)
...
...
@@ -765,10 +765,10 @@ func init() {
rootCmd
.
Flags
()
.
Lookup
(
"forceHistoricalRounds"
))
// Network params
rootCmd
.
Flags
()
.
BoolP
(
"
fast
Polling"
,
""
,
true
,
"Enables polling for filtered network updates"
)
viper
.
BindPFlag
(
"
fast
Polling"
,
rootCmd
.
Flags
()
.
Lookup
(
"
fast
Polling"
))
rootCmd
.
Flags
()
.
BoolP
(
"
slow
Polling"
,
""
,
true
,
"Enables polling for
un
filtered network updates
with RSA signatures
"
)
viper
.
BindPFlag
(
"
slow
Polling"
,
rootCmd
.
Flags
()
.
Lookup
(
"
slow
Polling"
))
// E2E Params
defaultE2EParams
:=
params
.
GetDefaultE2ESessionParams
()
...
...
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