@@ -204,9 +204,9 @@ func upsertPolicyExpressions(
204
204
} else {
205
205
// If we aren't dropping the old expression, we need to keep track of
206
206
// the dependencies in case we replace PolicyDeps.
207
- usesTypeIDs = catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... )
208
- usesRelationIDs = catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... )
209
- usesFunctionIDs = catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... )
207
+ usesTypeIDs = usesTypeIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... ) )
208
+ usesRelationIDs = usesRelationIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... ) )
209
+ usesFunctionIDs = usesFunctionIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... ) )
210
210
}
211
211
}
212
212
})
@@ -217,9 +217,9 @@ func upsertPolicyExpressions(
217
217
PolicyID : policyID ,
218
218
Expression : * expr ,
219
219
})
220
- usesTypeIDs = catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... )
221
- usesRelationIDs = catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... )
222
- usesFunctionIDs = catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... )
220
+ usesTypeIDs = usesTypeIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... ) )
221
+ usesRelationIDs = usesRelationIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... ) )
222
+ usesFunctionIDs = usesFunctionIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... ) )
223
223
}
224
224
225
225
policyElems .ForEach (func (current scpb.Status , target scpb.TargetStatus , e scpb.Element ) {
@@ -230,9 +230,9 @@ func upsertPolicyExpressions(
230
230
} else {
231
231
// If we aren't dropping the old expression, we need to keep track of
232
232
// the dependencies in case we replace PolicyDeps.
233
- usesTypeIDs = catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... )
234
- usesRelationIDs = catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... )
235
- usesFunctionIDs = catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... )
233
+ usesTypeIDs = usesTypeIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesTypeIDs ... ) )
234
+ usesRelationIDs = usesRelationIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesSequenceIDs ... ) )
235
+ usesFunctionIDs = usesFunctionIDs . Union ( catalog .MakeDescriptorIDSet (expr .UsesFunctionIDs ... ) )
236
236
}
237
237
}
238
238
})
0 commit comments