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
@@ -16,7 +16,8 @@ import (
func NewService(opts ...Option) grpc.Service {
options := newOptions(opts...)
service, err := grpc.NewService(
service, err := grpc.NewServiceWithClient(
options.Config.GrpcClient,
grpc.TLSEnabled(options.Config.GRPC.TLS.Enabled),
grpc.TLSCert(
options.Config.GRPC.TLS.Cert,