@@ -195,7 +195,6 @@ func (cl *ConcurrentLookupSubjects) lookupViaComputed(
195195 ctx context.Context ,
196196 parentRequest ValidatedLookupSubjectsRequest ,
197197 parentStream dispatch.LookupSubjectsStream ,
198- ts * schema.TypeSystem ,
199198 cu * core.ComputedUserset ,
200199) error {
201200 dl := datalayer .MustFromContext (ctx ).SnapshotReader (parentRequest .Revision )
@@ -368,7 +367,7 @@ func lookupViaIntersectionTupleToUserset(
368367 results := datasets .NewSubjectSet ()
369368 collectedMetadata := emptyMetadata
370369 for _ , result := range collectingStream .Results () {
371- collectedMetadata = combineResponseMetadata (ctx , collectedMetadata , result .Metadata )
370+ collectedMetadata = combineResponseMetadata (collectedMetadata , result .Metadata )
372371 for _ , foundSubjects := range result .FoundSubjectsByResourceId {
373372 if err := results .UnionWith (foundSubjects .FoundSubjects ); err != nil {
374373 return fmt .Errorf ("failed to UnionWith under lookupSubjectsIntersection: %w" , err )
@@ -379,7 +378,7 @@ func lookupViaIntersectionTupleToUserset(
379378 dispatchInfoForResource .lock .Lock ()
380379 defer dispatchInfoForResource .lock .Unlock ()
381380
382- dispatchInfoForResource .metadata = combineResponseMetadata (ctx , dispatchInfoForResource .metadata , collectedMetadata )
381+ dispatchInfoForResource .metadata = combineResponseMetadata (dispatchInfoForResource .metadata , collectedMetadata )
383382
384383 // If the first update for the resource, set the subjects set to the results.
385384 if dispatchInfoForResource .isFirstUpdate {
@@ -417,7 +416,7 @@ func lookupViaIntersectionTupleToUserset(
417416 currentSubjects = currentSubjects .WithParentCaveatExpression (ttuCaveat )
418417 currentSubjectsByResourceID [incomingResourceID ] = currentSubjects .AsFoundSubjects ()
419418
420- metadata = combineResponseMetadata (ctx , metadata , tracker .metadata )
419+ metadata = combineResponseMetadata (metadata , tracker .metadata )
421420 }
422421
423422 return parentStream .Publish (& v1.DispatchLookupSubjectsResponse {
@@ -538,7 +537,7 @@ func (cl *ConcurrentLookupSubjects) lookupSetOperation(
538537
539538 case * core.SetOperation_Child_ComputedUserset :
540539 g .Go (func () error {
541- return cl .lookupViaComputed (subCtx , req , stream , ts , child .ComputedUserset )
540+ return cl .lookupViaComputed (subCtx , req , stream , child .ComputedUserset )
542541 })
543542
544543 case * core.SetOperation_Child_UsersetRewrite :
@@ -763,7 +762,7 @@ func (lsu *lookupSubjectsUnion) CompletedChildOperations(ctx context.Context) er
763762 }
764763
765764 for _ , result := range collector .Results () {
766- metadata = combineResponseMetadata (ctx , metadata , result .Metadata )
765+ metadata = combineResponseMetadata (metadata , result .Metadata )
767766 if err := foundSubjects .UnionWith (result .FoundSubjectsByResourceId ); err != nil {
768767 return fmt .Errorf ("failed to UnionWith under lookupSubjectsUnion: %w" , err )
769768 }
@@ -811,7 +810,7 @@ func (lsi *lookupSubjectsIntersection) CompletedChildOperations(ctx context.Cont
811810
812811 results := datasets .NewSubjectSetByResourceID ()
813812 for _ , result := range collector .Results () {
814- metadata = combineResponseMetadata (ctx , metadata , result .Metadata )
813+ metadata = combineResponseMetadata (metadata , result .Metadata )
815814 if err := results .UnionWith (result .FoundSubjectsByResourceId ); err != nil {
816815 return fmt .Errorf ("failed to UnionWith under lookupSubjectsIntersection: %w" , err )
817816 }
@@ -864,7 +863,7 @@ func (lse *lookupSubjectsExclusion) CompletedChildOperations(ctx context.Context
864863 collector := lse .collectors [index ]
865864 results := datasets .NewSubjectSetByResourceID ()
866865 for _ , result := range collector .Results () {
867- metadata = combineResponseMetadata (ctx , metadata , result .Metadata )
866+ metadata = combineResponseMetadata (metadata , result .Metadata )
868867 if err := results .UnionWith (result .FoundSubjectsByResourceId ); err != nil {
869868 return fmt .Errorf ("failed to UnionWith under lookupSubjectsExclusion: %w" , err )
870869 }
0 commit comments