Skip to content

Commit 0baddbf

Browse files
docs(features): describe lazy rule resolution
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1e4a1ca6-53f7-4158-af22-35d2448d0b13
1 parent 875a1f6 commit 0baddbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pkg/inventory/features.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ type FeatureResolver func(flag FeatureFlag) bool
2626
type FeaturePredicate func(featureAsBool FeatureResolver) bool
2727

2828
// FeatureRule declares the feature flags used by an availability predicate.
29-
// The declaration lets the service resolve and deduplicate checks before the
30-
// predicate runs, while the predicate retains normal Go boolean semantics.
29+
// The predicate resolves reached flags lazily with normal Go boolean semantics,
30+
// while request state deduplicates repeated checks.
3131
type FeatureRule struct {
3232
features []FeatureFlag
3333
predicate FeaturePredicate

0 commit comments

Comments
 (0)