diff --git a/internal/storeLink/openi.go b/internal/storeLink/openi.go index 7aea5f8c5..2fa5603a0 100644 --- a/internal/storeLink/openi.go +++ b/internal/storeLink/openi.go @@ -132,7 +132,7 @@ func (o OpenI) GetResourceSpecs(ctx context.Context) (*collector.ResourceSpec, e var wg sync.WaitGroup var ch = make(chan *collector.Usage) var once sync.Once - wg.Add(2) + wg.Add(3) go func() { defer wg.Done() @@ -347,6 +347,7 @@ func (o OpenI) GetResourceSpecs(ctx context.Context) (*collector.ResourceSpec, e }() go func() { + defer wg.Done() rate := &collector.Usage{ Type: strings.ToUpper(RATE), Total: &collector.UnitValue{Unit: PERHOUR, Value: 1},