Defer wg.Done() in goroutine