Repository navigation
refactor: subscription sync pt.1 - #4012
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughRefactors subscription-sync into distinct components: a persisted-state loader, a target-state builder, and a reconciler that plans and applies typed Patch operations; removes legacy in-file patching and moves sync orchestration into the new reconciler workflow. Changes
Sequence DiagramsequenceDiagram
participant Service
participant Loader as persistedstate.Loader
participant Builder as targetstate.Builder
participant Reconciler
participant Updater as InvoiceUpdater
Service->>Loader: LoadForSubscription(subs)
Loader-->>Service: persisted State
Service->>Builder: Build(ctx, subs, asOf, persisted)
Builder-->>Service: target State
Service->>Reconciler: Plan(subscription, target, persisted)
Reconciler-->>Service: Plan
Service->>Loader: LoadInvoicesForCustomer(customerID)
Loader-->>Service: persisted Invoices
Service->>Reconciler: Apply(customer, subscription, currency, invoices, plan)
Reconciler->>Updater: ApplyPatches(customerID, patches)
Updater-->>Reconciler: apply results
Reconciler-->>Service: done
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (7)
openmeter/billing/worker/subscriptionsync/service/reconciler/invoiceupdate.go (1)
19-20: Consider moving the component name to a shared package.
service.SubscriptionSyncComponentNameis still exported and used by the parent package/tests, so this second copy now has to stay in lockstep by hand. Hoisting the value to a cycle-free shared package would avoid drift in validation issue matching.As per coding guidelines, "In general when reviewing the Golang code make readability and maintainability a priority, even potentially suggest restructuring the code to improve them."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/reconciler/invoiceupdate.go` around lines 19 - 20, There are two copies of the component name (subscriptionSyncComponentName in reconciler/invoiceupdate.go and service.SubscriptionSyncComponentName) which can drift; extract the string constant into a new or existing cycle-free shared package (e.g., billing/shared or billing/constants) and replace both local constants with a single exported symbol (e.g., billing.SharedSubscriptionSyncComponentName) so callers use that single source of truth; update imports/usages in reconciler/invoiceupdate.go and any tests/parent packages to reference the shared symbol and remove the duplicate local const to avoid manual lockstep maintenance.openmeter/billing/worker/subscriptionsync/service/reconciler/apply.go (2)
150-157: Type assertion could use a comment explaining the expectation.The type assertion to
billing.InvoiceAtAccessoronly happens for gathering invoices. This is reasonable, but a brief comment explaining why gathering invoice lines are expected to implement this interface would help future readers understand the invariant.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/reconciler/apply.go` around lines 150 - 157, Add a brief comment above the type assertion explaining the invariant: when invoices.IsGatheringInvoice(targetLine.GetInvoiceID()) is true the targetLine is expected to implement billing.InvoiceAtAccessor so we can set the gathered timestamp; then keep the existing assertion to billing.InvoiceAtAccessor and the call invoiceAtAccessor.SetInvoiceAt(expectedLine.InvoiceAt). This documents why the type assertion is safe and what callers rely on.
42-44: Minor: Pre-allocation capacity might be underestimatedThe initial capacity
len(p.LinesToDelete)+len(p.LinesToUpsert)doesn't account for hierarchies, whereGetDeletePatchesForLinecan return multiple patches (one for the group + one per child line). Not a bug since slices grow automatically, but the optimization intent isn't fully realized.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/reconciler/apply.go` around lines 42 - 44, The preallocated capacity in getPatchesFromPlan (currently len(p.LinesToDelete)+len(p.LinesToUpsert)) can underestimate because GetDeletePatchesForLine may produce multiple patches per deleted line (group + children); change the initial capacity to a safer estimate such as len(p.LinesToUpsert) + len(p.LinesToDelete)*2 (or another small multiplier) to reduce reallocations when appending patches from GetDeletePatchesForLine and upsert handling; update the patches := make([]Patch, 0, ...) line in getPatchesFromPlan accordingly.openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go (3)
98-100: Logic is a bit subtle - a comment would help.The condition
!currBillingPeriod.From.IsZero() && !generationLimit.Equal(currBillingPeriod.From)advancinggenerationLimittocurrBillingPeriod.Tois non-obvious. A brief comment explaining the intent (e.g., "advance to end of current billing period if we're mid-period") would make this easier to follow.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go` around lines 98 - 100, Add a brief clarifying comment above the conditional that updates generationLimit so future readers understand intent: explain that when the current billing period has a valid From and generationLimit does not equal that From (i.e., we are in the middle of the current billing period), we advance generationLimit to currBillingPeriod.To to finish the period. Place the comment near the if block that checks !currBillingPeriod.From.IsZero() && !generationLimit.Equal(currBillingPeriod.From) and reference currBillingPeriod.From, currBillingPeriod.To and generationLimit in the comment.
149-155: Extract the unique ID format to a shared helper function.Multiple places in the codebase construct the same unique ID format (
subscriptionID/phaseKey/itemKey/v[version]/period[index]):
- Line 149 here uses manual construction with
strings.Join()andfmt.Sprintf()suitebase_test.goline 321 explicitly constructs it the same wayphaseiterator.goand various test files also build pieces of this formatCentralizing this into a helper would ensure the format stays consistent across the codebase and prevent drift if it ever needs to change.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go` around lines 149 - 155, The construction of previousPeriodUniqueID is duplicated across the codebase; extract the format into a single helper (e.g., FormatSubscriptionPeriodID or BuildPeriodUniqueID) that accepts subscriptionID, phaseKey, itemKey, itemVersion, and periodIndex and returns subscriptionID/phaseKey/itemKey/v[version]/period[index]; replace the manual strings.Join/fmt.Sprintf usage in targetstate.go (previousPeriodUniqueID), suitebase_test.go, phaseiterator.go and all tests to call this helper so the format is centralized and consistent, and add/update unit tests for the helper to validate the exact string output.
229-238: Consider adding a clarifying comment about the filtering logic.The function searches for a child line that ends at the group's service period end and isn't deleted. If no such child exists, returning
falseis correct—it's intentional filtering, not a data inconsistency. A brief comment explaining why we look for this specific child would help future maintainers understand the design intent:func (b Builder) hierarchyHasAnnotation(hierarchy *billing.SplitLineHierarchy, annotation string) (bool, error) { servicePeriod := hierarchy.Group.ServicePeriod // Look for the child line that ends at the group's service period end and hasn't been deleted. // If no such child exists, there's no annotation to check on that line. for _, child := range hierarchy.Lines { if child.Line.GetServicePeriod().To.Equal(servicePeriod.End) && child.Line.GetDeletedAt() == nil { return b.lineHasAnnotation(child.Line.GetManagedBy(), child.Line.GetAnnotations(), annotation), nil } } return false, nil }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go` around lines 229 - 238, Add a short clarifying comment in the hierarchyHasAnnotation function explaining the filtering: note that we intentionally search for the child whose service period "To" equals the group's ServicePeriod.End and is not deleted (child.Line.GetServicePeriod().To.Equal(servicePeriod.End) && child.Line.GetDeletedAt() == nil) because only that child is considered the relevant active line to inspect for annotations; if no such child exists, return false (no annotation) rather than treating it as inconsistent data. Reference hierarchyHasAnnotation, billing.SplitLineHierarchy, servicePeriod, child.Line.GetServicePeriod().To, GetDeletedAt, and lineHasAnnotation when placing the comment.openmeter/billing/worker/subscriptionsync/service/persistedstate/loader.go (1)
48-50: Error message could include more context for debugging.When duplicates are detected, knowing which unique IDs are duplicated would help debugging. Consider including the duplicate ID(s) in the error message if
slicesx.UniqueGroupBycan provide that info, or logging it before returning.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/persistedstate/loader.go` around lines 48 - 50, The error returned when duplicates are detected is too vague; update the logic around the slicesx.UniqueGroupBy call in loader.go (the code that sets unique) to capture which IDs are duplicated and include them in the fmt.Errorf message (or log them before returning). If slicesx.UniqueGroupBy can return the duplicate groups or a map, use that to build a list of duplicate IDs and change the return to something like fmt.Errorf("duplicate unique ids in the existing lines: %v", dupIDs); otherwise compute duplicate IDs by scanning the input lines and include that list in the error before returning State{}.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@openmeter/billing/worker/subscriptionsync/service/persistedstate/state.go`:
- Around line 14-21: The IsGatheringInvoice function currently treats any lookup
miss as a gathering invoice; instead special-case an unassigned invoiceID
(invoiceID == "") to return true and make genuine lookup misses explicit by
returning false when invoiceID is non-empty but not found in the ByID map;
update Invoices.IsGatheringInvoice to first check invoiceID == "" (return true),
then attempt lookup in i.ByID and if missing return false, otherwise return
invoice.Type() == billing.InvoiceTypeGathering so real misses no longer bypass
immutable-invoice handling.
In `@openmeter/billing/worker/subscriptionsync/service/reconciler/apply.go`:
- Around line 270-276: The error message saying "last child" is misleading;
update the check in the shrink-path loop where
invoices.IsGatheringInvoice(updatedLine.GetInvoiceID()) is true and the type
assertion to billing.InvoiceAtAccessor fails — change the fmt.Errorf in that
branch to refer to "child line" (or similar), e.g., "child line is not an
InvoiceAtAccessor: %T", and ensure this occurs in the same block that calls
invoiceAtAccessor.SetInvoiceAt(expectedLine.InvoiceAt).
In `@openmeter/billing/worker/subscriptionsync/service/sync.go`:
- Around line 128-131: The code currently calls
persistedstate.NewLoader(...).LoadInvoicesForCustomer(ctx, customerID) before
buildSyncPlan() and the linesDiff.IsEmpty() fast-path, causing unnecessary
invoice scans; move the invoice-loading logic (the persistedLoader and
persistedInvoices usage) so it is executed only after buildSyncPlan() confirms
work is required (i.e., after you check linesDiff.IsEmpty()) and immediately
before calling s.reconciler.Apply(...). Update any variables that depend on
persistedInvoices to be in scope after the move and remove the pre-fast-path
invoice read to avoid holding the customer lock and performing unnecessary reads
on no-op syncs.
In
`@openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go`:
- Around line 273-301: The code calls
item.SubscriptionItem.RateCard.AsMeta().Price.Type() without confirming Price is
non-nil, which can panic; fix by first caching meta :=
item.SubscriptionItem.RateCard.AsMeta() and checking if meta.Price == nil
(returning an appropriate error like "price must be defined" or nil result)
before the switch, then use meta.Price.Type() inside the switch and remove or
simplify the redundant nil check in the default branch; update references to
AsMeta(), Price, and the switch on Type() accordingly (also keep existing
FlatPrice handling using AsFlat()).
- Around line 42-44: The current call to slices.SortFunc mutates subs.Phases in
place; clone the slice first to avoid mutating the caller's input by creating a
local copy (e.g., sorted := slices.Clone(subs.Phases)), then call
slices.SortFunc on that local copy using the same comparator that references
subscription.SubscriptionPhaseView and timeutil.Compare; if instead the sorted
order must be visible to the caller, make that contract explicit by documenting
it or accepting subs as a pointer rather than silently mutating the input.
---
Nitpick comments:
In `@openmeter/billing/worker/subscriptionsync/service/persistedstate/loader.go`:
- Around line 48-50: The error returned when duplicates are detected is too
vague; update the logic around the slicesx.UniqueGroupBy call in loader.go (the
code that sets unique) to capture which IDs are duplicated and include them in
the fmt.Errorf message (or log them before returning). If slicesx.UniqueGroupBy
can return the duplicate groups or a map, use that to build a list of duplicate
IDs and change the return to something like fmt.Errorf("duplicate unique ids in
the existing lines: %v", dupIDs); otherwise compute duplicate IDs by scanning
the input lines and include that list in the error before returning State{}.
In `@openmeter/billing/worker/subscriptionsync/service/reconciler/apply.go`:
- Around line 150-157: Add a brief comment above the type assertion explaining
the invariant: when invoices.IsGatheringInvoice(targetLine.GetInvoiceID()) is
true the targetLine is expected to implement billing.InvoiceAtAccessor so we can
set the gathered timestamp; then keep the existing assertion to
billing.InvoiceAtAccessor and the call
invoiceAtAccessor.SetInvoiceAt(expectedLine.InvoiceAt). This documents why the
type assertion is safe and what callers rely on.
- Around line 42-44: The preallocated capacity in getPatchesFromPlan (currently
len(p.LinesToDelete)+len(p.LinesToUpsert)) can underestimate because
GetDeletePatchesForLine may produce multiple patches per deleted line (group +
children); change the initial capacity to a safer estimate such as
len(p.LinesToUpsert) + len(p.LinesToDelete)*2 (or another small multiplier) to
reduce reallocations when appending patches from GetDeletePatchesForLine and
upsert handling; update the patches := make([]Patch, 0, ...) line in
getPatchesFromPlan accordingly.
In
`@openmeter/billing/worker/subscriptionsync/service/reconciler/invoiceupdate.go`:
- Around line 19-20: There are two copies of the component name
(subscriptionSyncComponentName in reconciler/invoiceupdate.go and
service.SubscriptionSyncComponentName) which can drift; extract the string
constant into a new or existing cycle-free shared package (e.g., billing/shared
or billing/constants) and replace both local constants with a single exported
symbol (e.g., billing.SharedSubscriptionSyncComponentName) so callers use that
single source of truth; update imports/usages in reconciler/invoiceupdate.go and
any tests/parent packages to reference the shared symbol and remove the
duplicate local const to avoid manual lockstep maintenance.
In
`@openmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go`:
- Around line 98-100: Add a brief clarifying comment above the conditional that
updates generationLimit so future readers understand intent: explain that when
the current billing period has a valid From and generationLimit does not equal
that From (i.e., we are in the middle of the current billing period), we advance
generationLimit to currBillingPeriod.To to finish the period. Place the comment
near the if block that checks !currBillingPeriod.From.IsZero() &&
!generationLimit.Equal(currBillingPeriod.From) and reference
currBillingPeriod.From, currBillingPeriod.To and generationLimit in the comment.
- Around line 149-155: The construction of previousPeriodUniqueID is duplicated
across the codebase; extract the format into a single helper (e.g.,
FormatSubscriptionPeriodID or BuildPeriodUniqueID) that accepts subscriptionID,
phaseKey, itemKey, itemVersion, and periodIndex and returns
subscriptionID/phaseKey/itemKey/v[version]/period[index]; replace the manual
strings.Join/fmt.Sprintf usage in targetstate.go (previousPeriodUniqueID),
suitebase_test.go, phaseiterator.go and all tests to call this helper so the
format is centralized and consistent, and add/update unit tests for the helper
to validate the exact string output.
- Around line 229-238: Add a short clarifying comment in the
hierarchyHasAnnotation function explaining the filtering: note that we
intentionally search for the child whose service period "To" equals the group's
ServicePeriod.End and is not deleted
(child.Line.GetServicePeriod().To.Equal(servicePeriod.End) &&
child.Line.GetDeletedAt() == nil) because only that child is considered the
relevant active line to inspect for annotations; if no such child exists, return
false (no annotation) rather than treating it as inconsistent data. Reference
hierarchyHasAnnotation, billing.SplitLineHierarchy, servicePeriod,
child.Line.GetServicePeriod().To, GetDeletedAt, and lineHasAnnotation when
placing the comment.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 32458ef8-b705-4d5f-ae76-c698e5c66dcb
📒 Files selected for processing (14)
openmeter/billing/worker/subscriptionsync/service/patch.goopenmeter/billing/worker/subscriptionsync/service/persistedstate/loader.goopenmeter/billing/worker/subscriptionsync/service/persistedstate/state.goopenmeter/billing/worker/subscriptionsync/service/reconcile.goopenmeter/billing/worker/subscriptionsync/service/reconciler/apply.goopenmeter/billing/worker/subscriptionsync/service/reconciler/feehelper.goopenmeter/billing/worker/subscriptionsync/service/reconciler/invoiceupdate.goopenmeter/billing/worker/subscriptionsync/service/reconciler/patch.goopenmeter/billing/worker/subscriptionsync/service/reconciler/reconciler.goopenmeter/billing/worker/subscriptionsync/service/service.goopenmeter/billing/worker/subscriptionsync/service/sync.goopenmeter/billing/worker/subscriptionsync/service/targetstate/phaseiterator.goopenmeter/billing/worker/subscriptionsync/service/targetstate/phaseiterator_test.goopenmeter/billing/worker/subscriptionsync/service/targetstate/targetstate.go
💤 Files with no reviewable changes (1)
- openmeter/billing/worker/subscriptionsync/service/patch.go
There was a problem hiding this comment.
♻️ Duplicate comments (1)
openmeter/billing/worker/subscriptionsync/service/sync.go (1)
128-130:⚠️ Potential issue | 🟠 MajorDefer invoice loading until after the no-op fast path.
Quick one:
LoadInvoicesForCustomerruns before plan calculation and theIsEmpty()return, so no-op syncs still do a full invoice read while holding the customer lock. It’d be better to load invoices only when we knowApplywill run.Suggested move
- persistedLoader := persistedstate.NewLoader(s.billingService) - persistedInvoices, err := persistedLoader.LoadInvoicesForCustomer(ctx, customerID) - if err != nil { - return err - } - // Calculate per line patches linesDiff, err := s.buildSyncPlan(ctx, subs, asOf, currency) if err != nil { return err } @@ if linesDiff == nil || linesDiff.IsEmpty() { ... return nil } + persistedLoader := persistedstate.NewLoader(s.billingService) + persistedInvoices, err := persistedLoader.LoadInvoicesForCustomer(ctx, customerID) + if err != nil { + return err + } + if err := s.reconciler.Apply(ctx, reconciler.ApplyInput{ Customer: customerID, Subscription: subs, Currency: currency, Invoices: persistedInvoices, Plan: linesDiff, }); err != nil { return err }As per coding guidelines, "Performance should be a priority in critical code paths. Anything related to event ingestion, message processing, database operations (regardless of database) should be vetted for potential performance bottlenecks."
Also applies to: 140-162
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/sync.go` around lines 128 - 130, The invoice load happens before plan calculation and the IsEmpty() fast-path, causing unnecessary DB reads under the customer lock; move the call to persistedstate.NewLoader(...) and persistedLoader.LoadInvoicesForCustomer(ctx, customerID) so they occur only after you compute the plan and check plan.IsEmpty(), and only invoke LoadInvoicesForCustomer when you are about to call Apply; update any usages in the Apply code path (see persistedLoader variable and references around the current LoadInvoicesForCustomer call and the block handling Apply) to ensure invoices are available when needed but not loaded for no-op syncs (also adjust the duplicated load sections around lines 140-162 accordingly).
🧹 Nitpick comments (1)
openmeter/billing/worker/subscriptionsync/service/reconciler/reconciler.go (1)
351-406: Consider deriving legacy buckets from semantic patches (single source of truth).Right now the plan builds both
SemanticPatchesand legacy line buckets independently. Since apply still consumes legacy buckets, these two tracks can drift over time. I’d recommend generating one from the other in a single conversion step to keep behavior locked and maintenance lighter.As per coding guidelines, "In general when reviewing the Golang code make readability and maintainability a priority, even potentially suggest restructuring the code to improve them."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@openmeter/billing/worker/subscriptionsync/service/reconciler/reconciler.go` around lines 351 - 406, The code builds semanticPatches and the legacy buckets (newLines, linesToDelete, linesToUpsert) independently which risks drift; instead compute semanticPatches first (using s.diffItem over deletedLines and inScopeLineUniqueIDs as currently done) and then derive NewSubscriptionItems, LinesToDelete and LinesToUpsert from that single canonical semanticPatches when constructing the Plan. Concretely: keep the existing loops that populate semanticPatches, remove or stop independently populating newLines/linesToDelete/linesToUpsert earlier, add a single conversion step after semanticPatches is finalized that iterates semanticPatches and/or inScopeLinesByUniqueID to produce NewSubscriptionItems (from inScopeLinesByUniqueID for “create” patches), LinesToDelete (for “delete” patches using persisted.ByUniqueID), and LinesToUpsert (for “update” patches using expectedLine/existingLine), then pass those derived buckets into the Plan so behavior is driven from semanticPatches only.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In `@openmeter/billing/worker/subscriptionsync/service/sync.go`:
- Around line 128-130: The invoice load happens before plan calculation and the
IsEmpty() fast-path, causing unnecessary DB reads under the customer lock; move
the call to persistedstate.NewLoader(...) and
persistedLoader.LoadInvoicesForCustomer(ctx, customerID) so they occur only
after you compute the plan and check plan.IsEmpty(), and only invoke
LoadInvoicesForCustomer when you are about to call Apply; update any usages in
the Apply code path (see persistedLoader variable and references around the
current LoadInvoicesForCustomer call and the block handling Apply) to ensure
invoices are available when needed but not loaded for no-op syncs (also adjust
the duplicated load sections around lines 140-162 accordingly).
---
Nitpick comments:
In `@openmeter/billing/worker/subscriptionsync/service/reconciler/reconciler.go`:
- Around line 351-406: The code builds semanticPatches and the legacy buckets
(newLines, linesToDelete, linesToUpsert) independently which risks drift;
instead compute semanticPatches first (using s.diffItem over deletedLines and
inScopeLineUniqueIDs as currently done) and then derive NewSubscriptionItems,
LinesToDelete and LinesToUpsert from that single canonical semanticPatches when
constructing the Plan. Concretely: keep the existing loops that populate
semanticPatches, remove or stop independently populating
newLines/linesToDelete/linesToUpsert earlier, add a single conversion step after
semanticPatches is finalized that iterates semanticPatches and/or
inScopeLinesByUniqueID to produce NewSubscriptionItems (from
inScopeLinesByUniqueID for “create” patches), LinesToDelete (for “delete”
patches using persisted.ByUniqueID), and LinesToUpsert (for “update” patches
using expectedLine/existingLine), then pass those derived buckets into the Plan
so behavior is driven from semanticPatches only.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7147c493-6901-4eed-bb36-9cc4f5791e56
📒 Files selected for processing (3)
openmeter/billing/worker/subscriptionsync/service/reconcile.goopenmeter/billing/worker/subscriptionsync/service/reconciler/reconciler.goopenmeter/billing/worker/subscriptionsync/service/sync.go
ee936dc to
40622c4
Compare
Overview
split the subscription sync into subpackages:
Notes for reviewer
Summary by CodeRabbit
New Features
Refactor