diff --git a/transport/grpc/server.go b/transport/grpc/server.go index 062b97e3e..33124dbbc 100644 --- a/transport/grpc/server.go +++ b/transport/grpc/server.go @@ -130,7 +130,6 @@ func (s *Server) Endpoint() (string, error) { if err != nil { return "", err } - s.address = addr return fmt.Sprintf("grpc://%s", addr), nil } diff --git a/transport/http/server.go b/transport/http/server.go index 9a41bf5ce..e5f2e7a20 100644 --- a/transport/http/server.go +++ b/transport/http/server.go @@ -122,7 +122,6 @@ func (s *Server) Endpoint() (string, error) { if err != nil { return "", err } - s.address = addr return fmt.Sprintf("http://%s", addr), nil }