Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
73a18e6f
Commit
73a18e6f
authored
Aug 21, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
连接池修改
parent
12be5616
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
6 deletions
+30
-6
src/Common/Pool/Config/AuthPoolConfig.php
+8
-0
src/Common/Pool/Config/BuyerPoolConfig.php
+8
-2
src/Common/Pool/Config/OrderPoolConfig.php
+7
-2
src/Common/Pool/Config/PayPoolConfig.php
+7
-2
No files found.
src/Common/Pool/Config/AuthPoolConfig.php
View file @
73a18e6f
...
@@ -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
*
*
...
...
src/Common/Pool/Config/BuyerPoolConfig.php
View file @
73a18e6f
...
@@ -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"
];
];
/**
/**
...
...
src/Common/Pool/Config/OrderPoolConfig.php
View file @
73a18e6f
...
@@ -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'
,
];
];
/**
/**
...
...
src/Common/Pool/Config/PayPoolConfig.php
View file @
73a18e6f
...
@@ -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"
];
];
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment