Skip to content

Commit

Permalink
lxd/auth/drivers: Remove concurrency limits.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing authored and gabrielmougard committed Nov 27, 2024
1 parent 5d41fe4 commit 404f715
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lxd/auth/drivers/openfga.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ func (e *embeddedOpenFGA) load(ctx context.Context, identityCache *identity.Cach
server.WithDatastore(opts.openfgaDatastore),
// Use our logger.
server.WithLogger(openfgaLogger{l: e.logger}),
// Set the max concurrency to 1 for both read and check requests.
// Our driver cannot perform concurrent reads.
server.WithMaxConcurrentReadsForListObjects(1),
server.WithMaxConcurrentReadsForCheck(1),
// Enable context propagation to the datastore so that the OpenFGA cache
// created for each request can be accessed from our OpenFGA datastore implementation.
server.WithContextPropagationToDatastore(true),
Expand Down

0 comments on commit 404f715

Please sign in to comment.