Replacing implicit grpc client initialization with explicit package local variables.

This commit is contained in:
Daniel Swärd
2023-07-31 12:57:59 +02:00
parent 82045b8850
commit 6a5e21eff4
26 changed files with 33 additions and 115 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ import (
func Server(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,