Separate out grpc client to package local for thumbnails service.

This commit is contained in:
Daniel Swärd
2023-07-27 12:22:28 +02:00
parent 94aab8b38d
commit d21b03b14c
4 changed files with 12 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ func Server(cfg *config.Config) *cli.Command {
if err != nil {
return err
}
err = ogrpc.Configure(ogrpc.GetClientOptions(cfg.GRPCClientTLS)...)
cfg.GrpcClient, err = ogrpc.NewClient(ogrpc.GetClientOptions(cfg.GRPCClientTLS)...)
if err != nil {
return err
}