mirror of
https://github.com/TeamPiped/instances-api.git
synced 2024-12-12 21:30:38 +05:30
Use a buffered channel to fix Goroutine leak.
This commit is contained in:
parent
e454c6af5f
commit
f5d4ec6492
2
main.go
2
main.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user