Skip to content
Snippets Groups Projects
Commit 12dc1cdc authored by Josh Brooks's avatar Josh Brooks
Browse files

Add ForceMessagePickupRetry flag to CLI

parent 58bf8fcc
Branches
No related tags found
1 merge request!23Release
......@@ -160,6 +160,9 @@ Flags:
base64 representations) (default "0")
--forceHistoricalRounds Force all rounds to be sent to historical
round retrieval
--forceMessagePickupRetry Enable a mechanism which forces a 50% chance
of no message pickup, instead triggering the
message pickup retry mechanism
-h, --help help for client
-l, --log string Path to the log output path (- is stdout)
(default "-")
......
......@@ -769,6 +769,9 @@ func init() {
"Enables polling for unfiltered network updates with RSA signatures")
viper.BindPFlag("slowPolling",
rootCmd.Flags().Lookup("slowPolling"))
rootCmd.Flags().Bool("forceMessagePickupRetry", false,
"Enable a mechanism which forces a 50% chance of no message pickup, " +
"instead triggering the message pickup retry mechanism")
// E2E Params
defaultE2EParams := params.GetDefaultE2ESessionParams()
......
......@@ -35,6 +35,10 @@ type Rounds struct {
// Interval between checking for rounds in UncheckedRoundStore
// due for a message retrieval retry
UncheckRoundPeriod time.Duration
// Toggles if message pickup retrying mechanism if forced
// by intentionally not looking up messages
ForceMessagePickupRetry bool
}
func GetDefaultRounds() Rounds {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment