From edaf9eaaa61612d2b3f1e8d9fdb95c49e5cc9a70 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 29 Oct 2020 21:11:24 +0300 Subject: [PATCH] proper fill server metadata Signed-off-by: Vasiliy Tolstov --- grpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc.go b/grpc.go index a582269..969ffbc 100644 --- a/grpc.go +++ b/grpc.go @@ -758,8 +758,8 @@ func (g *grpcServer) Register() error { } g.RUnlock() - service.Metadata["protocol"] = "grpc" - service.Metadata["transport"] = "grpc" + service.Nodes[0].Metadata["protocol"] = "grpc" + service.Nodes[0].Metadata["transport"] = "grpc" service.Endpoints = endpoints g.RLock()