Skip to content

Commit 69eaaa7

Browse files
committed
fix: lint
1 parent 984739e commit 69eaaa7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • openmeter/billing/charges/usagebased/service

openmeter/billing/charges/usagebased/service/get.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
"fmt"
77
"sync"
88

9+
"github.com/samber/lo"
10+
"golang.org/x/sync/semaphore"
11+
912
"github.com/openmeterio/openmeter/openmeter/billing"
1013
"github.com/openmeterio/openmeter/openmeter/billing/charges/meta"
1114
"github.com/openmeterio/openmeter/openmeter/billing/charges/usagebased"
@@ -15,11 +18,10 @@ import (
1518
"github.com/openmeterio/openmeter/pkg/framework/transaction"
1619
"github.com/openmeterio/openmeter/pkg/ref"
1720
"github.com/openmeterio/openmeter/pkg/slicesx"
18-
"github.com/samber/lo"
19-
"golang.org/x/sync/semaphore"
2021
)
2122

2223
const (
24+
// defaultWorkerCount is the number of workers to use for the rating (fetching from CH).
2325
defaultWorkerCount = 5
2426
)
2527

@@ -150,7 +152,6 @@ func (s *service) expandChargesUsage(ctx context.Context, namespace string, char
150152
}
151153
ratingResults.Store(charge.GetChargeID(), ratingResult)
152154
})
153-
154155
}
155156

156157
wg.Wait()

0 commit comments

Comments
 (0)