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
+3 -1
View File
@@ -34,7 +34,9 @@ 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
}