internal/handlers: add credential pagination support
This commit is contained in:
1 parent
fa898fe87b
commit
9f6ac602ee
8 files changed
+944
-251
No files matched your search
@@ -288,7 +288,12 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
|
||||
services.RegisterWorkerServiceServer(s, ws)
|
||||
}
|
||||
if _, ok := currentServices[services.CredentialService_ServiceDesc.ServiceName]; !ok {
|
||||
c, err := credentials.NewService(c.baseContext, c.StaticCredentialRepoFn, c.IamRepoFn)
|
||||
c, err := credentials.NewService(
|
||||
c.baseContext,
|
||||
c.IamRepoFn,
|
||||
c.StaticCredentialRepoFn,
|
||||
c.conf.RawConfig.Controller.MaxPageSize,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create credential handler service: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user