From 7f0c37578ec0c01e8870b8db666dfe4ea5a1d380 Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Fri, 14 Apr 2017 17:17:21 +0900 Subject: [PATCH] . --- connection_pool.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/connection_pool.go b/connection_pool.go index 973e899..0f3fa10 100644 --- a/connection_pool.go +++ b/connection_pool.go @@ -2,8 +2,9 @@ package crawler_manager import "google.golang.org/grpc" -func (c *crawler_manager)GetClient(container string) (*grpc.ClientConn, error) { +type GRPCPool struct { +} - - return nil, nil -} \ No newline at end of file +func (c *GRPCPool)GetClient(container string,port string) (*grpc.ClientConn, error) { + return grpc.Dial("localhost:50000", grpc.WithInsecure()) +}