diff --git a/cmd/root.go b/cmd/root.go index bf621540cfa0238e4dd639afb3eb27768b311777..b8ce1923820b784983d3bdcc7a5f0ad1b75f31cc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -312,6 +312,7 @@ var rootCmd = &cobra.Command{ paramsUnsafe := params.GetDefaultUnsafe() wg := &sync.WaitGroup{} sendCnt := int(viper.GetUint("sendCount")) + paramsE2E.UseExcluded = viper.GetBool("splitSends") wg.Add(sendCnt) go func() { //sendDelay := time.Duration(viper.GetUint("sendDelay")) @@ -987,6 +988,9 @@ func init() { rootCmd.Flags().UintP("sendDelay", "", 500, "The delay between sending the messages in ms") 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, "Ensure successful message sending by checking for round completion")