Skip to content

Commit

Permalink
fix a minor issue in cerberus_cache syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Mar 1, 2024
1 parent abebb6a commit cfb7be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/auth/authenticator_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ func retrieveObjects(
l client.ObjectList,
c client.Client,
ctx context.Context,
listOpts ...*client.ListOptions,
listOpts ...client.ListOption,
) error {
t := time.Now()
metricsLabel := reflect.TypeOf(l).Elem().String()
err := c.List(ctx, l)
err := c.List(ctx, l, listOpts...)
fetchObjectListLatency.With(AddKindLabel(nil, metricsLabel)).Observe(time.Since(t).Seconds())
return err
}
Expand Down

0 comments on commit cfb7be1

Please sign in to comment.