Commit 3504c285 by xmy

feat:物流

parent 35a08f74
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/** /**
* This file is part of Swoft. * This file is part of Swoft.
* *
* @link https://swoft.org * @link https://swoft.org
* @document https://doc.swoft.org * @document https://doc.swoft.org
* @contact group@swoft.org * @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE * @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
...@@ -22,84 +22,84 @@ use Swoft\Pool\PoolProperties; ...@@ -22,84 +22,84 @@ use Swoft\Pool\PoolProperties;
class LogisticsPoolConfig extends PoolProperties class LogisticsPoolConfig extends PoolProperties
{ {
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_LOGISTICS_URI', 'buyer:8099')); $this->uri = explode(',', env('RPC_LOGISTICS_URI', 'logistics:8099'));
} }
/** /**
* the name of pool * the name of pool
* *
*/ */
protected $name = 'logistics'; protected $name = 'logistics';
/** /**
* Minimum active number of connections * Minimum active number of connections
* *
*/ */
protected $minActive = 5; protected $minActive = 5;
/** /**
* the maximum number of active connections * the maximum number of active connections
* *
*/ */
protected $maxActive = 300; protected $maxActive = 300;
/** /**
* the maximum number of wait connections * the maximum number of wait connections
* *
*/ */
protected $maxWait = 400; protected $maxWait = 400;
/** /**
* Maximum waiting time * Maximum waiting time
* *
*/ */
protected $maxWaitTime = 3; protected $maxWaitTime = 3;
/** /**
* Maximum idle time * Maximum idle time
* *
*/ */
protected $maxIdleTime = 60; protected $maxIdleTime = 60;
/** /**
* the time of connect timeout * the time of connect timeout
* *
*/ */
protected $timeout = 200; protected $timeout = 200;
/** /**
* the addresses of connection * the addresses of connection
* *
* <pre> * <pre>
* [ * [
* '127.0.0.1:88', * '127.0.0.1:88',
* '127.0.0.1:88' * '127.0.0.1:88'
* ] * ]
* </pre> * </pre>
* *
*/ */
protected $uri = [ protected $uri = [
"buyer:8099", "buyer:8099",
]; ];
/** /**
* whether to user provider(consul/etcd/zookeeper) * whether to user provider(consul/etcd/zookeeper)
* *
*/ */
protected $useProvider = false; protected $useProvider = false;
/** /**
* the default balancer is random balancer * the default balancer is random balancer
* *
*/ */
protected $balancer = ''; protected $balancer = '';
/** /**
* the default provider is consul provider * the default provider is consul provider
* *
*/ */
protected $provider = ''; protected $provider = '';
} }
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