Skip to content
Snippets Groups Projects
Commit 8fd3f791 authored by Jonah Husson's avatar Jonah Husson
Browse files

Add flag to force use of excluded rounds

parent 9d36ee60
No related branches found
No related tags found
2 merge requests!117Release,!86M203/excluded rounds
...@@ -312,6 +312,7 @@ var rootCmd = &cobra.Command{ ...@@ -312,6 +312,7 @@ var rootCmd = &cobra.Command{
paramsUnsafe := params.GetDefaultUnsafe() paramsUnsafe := params.GetDefaultUnsafe()
wg := &sync.WaitGroup{} wg := &sync.WaitGroup{}
sendCnt := int(viper.GetUint("sendCount")) sendCnt := int(viper.GetUint("sendCount"))
paramsE2E.UseExcluded = viper.GetBool("splitSends")
wg.Add(sendCnt) wg.Add(sendCnt)
go func() { go func() {
//sendDelay := time.Duration(viper.GetUint("sendDelay")) //sendDelay := time.Duration(viper.GetUint("sendDelay"))
...@@ -987,6 +988,9 @@ func init() { ...@@ -987,6 +988,9 @@ func init() {
rootCmd.Flags().UintP("sendDelay", rootCmd.Flags().UintP("sendDelay",
"", 500, "The delay between sending the messages in ms") "", 500, "The delay between sending the messages in ms")
viper.BindPFlag("sendDelay", rootCmd.Flags().Lookup("sendDelay")) viper.BindPFlag("sendDelay", rootCmd.Flags().Lookup("sendDelay"))
rootCmd.Flags().BoolP("splitSends",
"", true, "Force sends to go over multiple rounds if possible")
viper.BindPFlag("splitSends", rootCmd.Flags().Lookup("splitSends"))
rootCmd.Flags().BoolP("verify-sends", "", false, rootCmd.Flags().BoolP("verify-sends", "", false,
"Ensure successful message sending by checking for round completion") "Ensure successful message sending by checking for round completion")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment