mirror of
https://github.com/TeamPiped/instances-api.git
synced 2024-08-14 23:57:19 +00:00
Use a buffered channel to fix Goroutine leak.
This commit is contained in:
parent
e454c6af5f
commit
f5d4ec6492
1 changed files with 1 additions and 1 deletions
2
main.go
2
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
|
||||
|
|
Loading…
Reference in a new issue