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()