Ensure we count the number for the waitgroup correctly

This commit is contained in:
Dane Everitt
2019-11-30 14:10:32 -08:00
parent 3663a8fb31
commit fa42ed92fb

View File

@@ -81,6 +81,8 @@ func main() {
wg := sizedwaitgroup.New(4)
for _, serv := range servers {
wg.Add()
go func(s *server.Server) {
defer wg.Done()