Commit 76d2dc16 by xmy

连接池

parent 12be5616
...@@ -23,7 +23,8 @@ class GoodsPoolConfig extends PoolProperties ...@@ -23,7 +23,8 @@ class GoodsPoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_GOODS_URI', '172.21.0.47:8099,172.16.255.235:8099')); // $this->uri = explode(',', env('RPC_GOODS_URI', '172.21.0.47:8099,172.16.255.235:8099'));
$this->uri = explode(',', env('RPC_GOODS_URI', 'goods:8099'));
} }
......
...@@ -23,7 +23,8 @@ class GroupBookingPoolConfig extends PoolProperties ...@@ -23,7 +23,8 @@ class GroupBookingPoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_GROUPBOOKING_URI', '172.21.0.38:8099,172.16.255.27:8099')); // $this->uri = explode(',', env('RPC_GROUPBOOKING_URI', '172.21.0.38:8099,172.16.255.27:8099'));
$this->uri = explode(',', env('RPC_GROUPBOOKING_URI', 'group-booking:8099'));
} }
protected $name = 'groupBooking'; protected $name = 'groupBooking';
......
...@@ -24,7 +24,8 @@ class SellerDistributionPoolConfig extends PoolProperties ...@@ -24,7 +24,8 @@ class SellerDistributionPoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_SELLER_DISTRIBUTION_URI', '172.21.0.17:8099,172.16.255.34:8099')); $this->uri = explode(',', env('RPC_SELLER_DISTRIBUTION_URI', 'seller-distribution:8099'));
// $this->uri = explode(',', env('RPC_SELLER_DISTRIBUTION_URI', '172.21.0.17:8099,172.16.255.34:8099'));
} }
protected $name = 'sellerDistribution'; protected $name = 'sellerDistribution';
......
...@@ -24,7 +24,8 @@ class VipPoolConfig extends PoolProperties ...@@ -24,7 +24,8 @@ class VipPoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_VIP_URI', '172.21.0.10:8099,172.16.255.196:8099')); // $this->uri = explode(',', env('RPC_VIP_URI', '172.21.0.10:8099,172.16.255.196:8099'));
$this->uri = explode(',', env('RPC_VIP_URI', 'vip:8099'));
} }
protected $name = 'seller'; protected $name = 'seller';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment