Use a buffered channel to fix Goroutine leak.

This commit is contained in:
Kavin 2024-07-01 21:12:22 +01:00
parent e454c6af5f
commit f5d4ec6492
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F

View File

@ -173,7 +173,7 @@ func getInstanceDetails(split []string, latest string) (Instance, error) {
ApiUrl := strings.TrimSpace(split[1]) ApiUrl := strings.TrimSpace(split[1])
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
errorChannel := make(chan error) errorChannel := make(chan error, 9)
// the amount of tests to do // the amount of tests to do
wg.Add(6) wg.Add(6)
// Add 3 more for uptime history // Add 3 more for uptime history