[VOL-2736]host and port should be specified as a single argument not as two separate arguments
Change-Id: I5a3a494c38dafa1e7e18e1f1cd55c0035359c7a9
diff --git a/vendor/github.com/opencord/voltha-lib-go/v3/pkg/grpc/server.go b/vendor/github.com/opencord/voltha-lib-go/v3/pkg/grpc/server.go
index 43f2912..fa5c521 100644
--- a/vendor/github.com/opencord/voltha-lib-go/v3/pkg/grpc/server.go
+++ b/vendor/github.com/opencord/voltha-lib-go/v3/pkg/grpc/server.go
@@ -17,7 +17,6 @@
import (
"context"
- "fmt"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
@@ -62,7 +61,6 @@
type GrpcServer struct {
gs *grpc.Server
address string
- port int
secure bool
services []func(*grpc.Server)
probe ReadyProbe // optional
@@ -75,14 +73,12 @@
*/
func NewGrpcServer(
address string,
- port int,
certs *GrpcSecurity,
secure bool,
probe ReadyProbe,
) *GrpcServer {
server := &GrpcServer{
address: address,
- port: port,
secure: secure,
GrpcSecurity: certs,
probe: probe,
@@ -95,9 +91,7 @@
*/
func (s *GrpcServer) Start(ctx context.Context) {
- host := fmt.Sprintf("%s:%d", s.address, s.port)
-
- lis, err := net.Listen("tcp", host)
+ lis, err := net.Listen("tcp", s.address)
if err != nil {
logger.Fatalf("failed to listen: %v", err)
}