fix addr listen bug

pull/972/head
longXboy 4 years ago
parent 63191930ed
commit 493373dc13
  1. 1
      transport/grpc/server.go
  2. 1
      transport/http/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
}

@ -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
}

Loading…
Cancel
Save