Skip to content

Commit 9248c1c

Browse files
authored
[usage] Fix constructor binding (#17479)
1 parent c632b7e commit 9248c1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/usage/pkg/scheduler/ledger_job.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ type ClientsConstructor func() (v1.UsageServiceClient, v1.BillingServiceClient,
2424

2525
func NewLedgerTrigger(clientConstructor ClientsConstructor, sync *redsync.Redsync, mutexExpiry time.Duration) *LedgerJob {
2626
return &LedgerJob{
27-
sync: sync,
28-
mutexDuration: mutexExpiry,
27+
sync: sync,
28+
mutexDuration: mutexExpiry,
29+
clientsConstructor: clientConstructor,
2930
}
3031
}
3132

0 commit comments

Comments
 (0)