From 8e5a30debb3ccd9e53223539608bca618f7c2fb3 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Thu, 29 Nov 2018 11:18:16 -0800 Subject: [PATCH] quick fix for syncing server making connection --- syncing/downloader/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syncing/downloader/server.go b/syncing/downloader/server.go index dd28ba882..08d3244cb 100644 --- a/syncing/downloader/server.go +++ b/syncing/downloader/server.go @@ -2,7 +2,6 @@ package downloader import ( "context" - "fmt" "log" "net" @@ -31,7 +30,9 @@ func (s *Server) Query(ctx context.Context, request *pb.DownloaderRequest) (*pb. // Start starts the Server on given ip and port. func (s *Server) Start(ip, port string) (*grpc.Server, error) { - lis, err := net.Listen("tcp", fmt.Sprintf("%s:%s", ip, port)) + // TODO(minhdoan): Currently not using ip. Fix it later. + addr := net.JoinHostPort("", port) + lis, err := net.Listen("tcp", addr) if err != nil { log.Fatalf("failed to listen: %v", err) }