From f5d4ec649233c048f63f574d67e0cecc1c0110b2 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:12:22 +0100 Subject: [PATCH] Use a buffered channel to fix Goroutine leak. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7967d3a..069d4b9 100644 --- a/main.go +++ b/main.go @@ -173,7 +173,7 @@ func getInstanceDetails(split []string, latest string) (Instance, error) { ApiUrl := strings.TrimSpace(split[1]) wg := sync.WaitGroup{} - errorChannel := make(chan error) + errorChannel := make(chan error, 9) // the amount of tests to do wg.Add(6) // Add 3 more for uptime history