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

re-add send delay

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