Commit 432dc852 by xmy

连接池

parent f200a442
...@@ -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_PAY_URI', 'pay:8099'));
}
/** /**
* the name of pool * the name of pool
* *
......
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