Skip to content
Snippets Groups Projects
Commit c87fe956 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fixed send delay

parent fe958e60
No related branches found
No related tags found
No related merge requests found
...@@ -314,11 +314,11 @@ func init() { ...@@ -314,11 +314,11 @@ func init() {
viper.BindPFlag("sendCount", rootCmd.Flags().Lookup("sendCount")) viper.BindPFlag("sendCount", rootCmd.Flags().Lookup("sendCount"))
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("sendCount", rootCmd.Flags().Lookup("sendCount")) viper.BindPFlag("sendDelay", rootCmd.Flags().Lookup("sendDelay"))
rootCmd.Flags().UintP("receiveCount", rootCmd.Flags().UintP("receiveCount",
"", 1, "How many messages we should wait for before quitting") "", 1, "How many messages we should wait for before quitting")
viper.BindPFlag("sendCount", rootCmd.Flags().Lookup("sendCount")) viper.BindPFlag("receiveCount", rootCmd.Flags().Lookup("receiveCount"))
rootCmd.Flags().UintP("waitTimeout", "", 15, rootCmd.Flags().UintP("waitTimeout", "", 15,
"The number of seconds to wait for messages to arrive") "The number of seconds to wait for messages to arrive")
viper.BindPFlag("waitTimeout", viper.BindPFlag("waitTimeout",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment