Skip to content

Commit 443e765

Browse files
authored
Merge pull request #3 from daydaygo/master
fix 'model -> mode'
2 parents fc64a43 + 533d759 commit 443e765

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Command/RpcCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public function start()
3939
$tcpHost = $tcpStatus['host'];
4040
$tcpPort = $tcpStatus['port'];
4141
$tcpType = $tcpStatus['type'];
42-
$tcpModel = $tcpStatus['model'];
42+
$tcpMode = $tcpStatus['mode'];
4343

4444
// 信息面板
4545
$lines = [
4646
' Information Panel ',
4747
'**********************************************************',
48-
"* tcp | Host: <note>$tcpHost</note>, port: <note>$tcpPort</note>, Model: <note>$tcpModel</note>, type: <note>$tcpType</note>",
48+
"* tcp | Host: <note>$tcpHost</note>, port: <note>$tcpPort</note>, Model: <note>$tcpMode</note>, type: <note>$tcpType</note>",
4949
'**********************************************************',
5050
];
5151
output()->writeln(implode("\n", $lines));

src/Rpc/RpcServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RpcServer extends AbstractServer
1818
*/
1919
public function start()
2020
{
21-
$this->server = new Server($this->tcpSetting['host'], $this->tcpSetting['port'], $this->tcpSetting['model'], $this->tcpSetting['type']);
21+
$this->server = new Server($this->tcpSetting['host'], $this->tcpSetting['port'], $this->tcpSetting['mode'], $this->tcpSetting['type']);
2222

2323
// Bind event callback
2424
$listenSetting = $this->getListenTcpSetting();

test/config/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
'tcp' => [
1111
'host' => env('TCP_HOST', '0.0.0.0'),
1212
'port' => env('TCP_PORT', 8099),
13-
'model' => env('TCP_MODEL', SWOOLE_PROCESS),
13+
'mode' => env('TCP_MODE', SWOOLE_PROCESS),
1414
'type' => env('TCP_TYPE', SWOOLE_SOCK_TCP),
1515
'package_max_length' => env('TCP_PACKAGE_MAX_LENGTH', 2048),
1616
'open_eof_check' => env('TCP_OPEN_EOF_CHECK', false),
1717
],
1818
'http' => [
1919
'host' => env('HTTP_HOST', '0.0.0.0'),
2020
'port' => env('HTTP_PORT', 80),
21-
'model' => env('HTTP_MODEL', SWOOLE_PROCESS),
21+
'mode' => env('HTTP_MODE', SWOOLE_PROCESS),
2222
'type' => env('HTTP_TYPE', SWOOLE_SOCK_TCP),
2323
],
2424
'crontab' => [

0 commit comments

Comments
 (0)