Skip to content

Commit 66df4d3

Browse files
committed
2 parents 60a6f4b + d9ea320 commit 66df4d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Bootstrap/Server/AbstractServer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function initSettings()
271271
protected function getListenTcpSetting(): array
272272
{
273273
$listenTcpSetting = $this->tcpSetting;
274-
unset($listenTcpSetting['host'], $listenTcpSetting['port'], $listenTcpSetting['model'], $listenTcpSetting['type']);
274+
unset($listenTcpSetting['host'], $listenTcpSetting['port'], $listenTcpSetting['mode'], $listenTcpSetting['type']);
275275
return $listenTcpSetting;
276276
}
277277

test/Testing/Pool/ConsulEnvConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Swoft\Bean\Annotation\Bean;
66
use Swoft\Bean\Annotation\Value;
7-
use Swoft\Pool\Provider\ProviderInterface;
7+
use Swoft\Sg\Provider\ProviderInterface;
88

99
/**
1010
* the properties of config

test/config/server.php

+2-2
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)