From d4585933ac0358bf9933eb08f125c53a92637019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 18 Feb 2021 13:06:36 +0000 Subject: [PATCH] reuse the default client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- ocis-pkg/service/grpc/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocis-pkg/service/grpc/service.go b/ocis-pkg/service/grpc/service.go index 58e4f0676af..407a04d8bb4 100644 --- a/ocis-pkg/service/grpc/service.go +++ b/ocis-pkg/service/grpc/service.go @@ -33,7 +33,7 @@ func NewService(opts ...Option) Service { // first add a server because it will reset any options micro.Server(mgrpcs.NewServer()), // also add a client that can be used after initializing the service - micro.Client(mgrpcc.NewClient()), + micro.Client(DefaultClient), micro.Address(sopts.Address), micro.Name(strings.Join([]string{sopts.Namespace, sopts.Name}, ".")), micro.Version(sopts.Version),