refactor(vault): add context and remove deprecated errors (#2396)

* refact(vault): add context and remove deprecated errors
This commit is contained in:
Irena Rindos authored and GitHub committed 2022-08-25 14:37:22 -04:00
1 parent aef9073fa6
commit b4b95e0f0e
16 files changed
+169 -141

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
services.RegisterManagedGroupServiceServer(s, mgs)
}
if _, ok := currentServices[services.CredentialStoreService_ServiceDesc.ServiceName]; !ok {
cs, err := credentialstores.NewService(c.VaultCredentialRepoFn, c.StaticCredentialRepoFn, c.IamRepoFn)
cs, err := credentialstores.NewService(c.baseContext, c.VaultCredentialRepoFn, c.StaticCredentialRepoFn, c.IamRepoFn)
if err != nil {
return fmt.Errorf("failed to create credential store handler service: %w", err)
}