|
|
@@ -23,7 +23,7 @@ func GetBusinessIntClient(url, port string) pb.BusinessIntClient { |
|
|
|
func GetBusinessExtClient(url, port string) pb.BusinessExtClient { |
|
|
|
target := fmt.Sprintf("%s:%s", url, port) |
|
|
|
conn, err := grpc.Dial(target, grpc.WithInsecure()) |
|
|
|
defer conn.Close() |
|
|
|
//defer conn.Close() |
|
|
|
if err != nil { |
|
|
|
fmt.Println(err) |
|
|
|
return nil |
|
|
|