Commit 73a18e6f by feixiang

连接池修改

parent 12be5616
...@@ -21,6 +21,14 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,14 @@ use Swoft\Pool\PoolProperties;
*/ */
class AuthPoolConfig extends PoolProperties class AuthPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'auth:8099'));
}
/** /**
* the name of pool * the name of pool
* *
......
...@@ -21,6 +21,13 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,13 @@ use Swoft\Pool\PoolProperties;
*/ */
class BuyerPoolConfig extends PoolProperties class BuyerPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'buyer:8099'));
}
/** /**
* the name of pool * the name of pool
* *
...@@ -75,8 +82,7 @@ class BuyerPoolConfig extends PoolProperties ...@@ -75,8 +82,7 @@ class BuyerPoolConfig extends PoolProperties
* *
*/ */
protected $uri = [ protected $uri = [
"172.21.0.12:8099", "buyer:8099",
"172.16.255.33:8099"
]; ];
/** /**
......
...@@ -19,6 +19,12 @@ use Swoft\Pool\PoolProperties; ...@@ -19,6 +19,12 @@ use Swoft\Pool\PoolProperties;
*/ */
class OrderPoolConfig extends PoolProperties class OrderPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'order:8099'));
}
protected $name = 'order'; protected $name = 'order';
...@@ -77,8 +83,7 @@ class OrderPoolConfig extends PoolProperties ...@@ -77,8 +83,7 @@ class OrderPoolConfig extends PoolProperties
* @var array * @var array
*/ */
protected $uri = [ protected $uri = [
'172.21.0.20:8099', 'order:8099',
'172.16.255.2:8099',
]; ];
/** /**
......
...@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties;
*/ */
class PayPoolConfig extends PoolProperties class PayPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'pay:8099'));
}
/** /**
* the name of pool * the name of pool
* *
...@@ -75,8 +81,7 @@ class PayPoolConfig extends PoolProperties ...@@ -75,8 +81,7 @@ class PayPoolConfig extends PoolProperties
* *
*/ */
protected $uri = [ protected $uri = [
"172.21.0.39:8099", "pay:8099",
"172.16.255.167:8099"
]; ];
/** /**
......
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