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

Add some buffer to the connected channel

parent 197f9095
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ var rootCmd = &cobra.Command{ ...@@ -132,7 +132,7 @@ var rootCmd = &cobra.Command{
} }
// Wait until connected or crash on timeout // Wait until connected or crash on timeout
connected := make(chan bool, 1) connected := make(chan bool, 10)
client.GetHealth().AddChannel(connected) client.GetHealth().AddChannel(connected)
waitTimeout := time.Duration(viper.GetUint("waitTimeout")) waitTimeout := time.Duration(viper.GetUint("waitTimeout"))
timeoutTimer := time.NewTimer(waitTimeout * time.Second) timeoutTimer := time.NewTimer(waitTimeout * time.Second)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment