Skip to content
Snippets Groups Projects
Commit f2c03b8f authored by Jake Taylor's avatar Jake Taylor
Browse files

re-add send delay

parent 1660a036
Branches
Tags
1 merge request!117Release
...@@ -314,7 +314,7 @@ var rootCmd = &cobra.Command{ ...@@ -314,7 +314,7 @@ var rootCmd = &cobra.Command{
sendCnt := int(viper.GetUint("sendCount")) sendCnt := int(viper.GetUint("sendCount"))
wg.Add(sendCnt) wg.Add(sendCnt)
go func() { go func() {
//sendDelay := time.Duration(viper.GetUint("sendDelay")) sendDelay := time.Duration(viper.GetUint("sendDelay"))
for i := 0; i < sendCnt; i++ { for i := 0; i < sendCnt; i++ {
go func(i int) { go func(i int) {
defer wg.Done() defer wg.Done()
...@@ -376,6 +376,7 @@ var rootCmd = &cobra.Command{ ...@@ -376,6 +376,7 @@ var rootCmd = &cobra.Command{
break break
} }
}(i) }(i)
time.Sleep(sendDelay * time.Millisecond)
} }
}() }()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment