Skip to content

Commit ee50ec9

Browse files
committed
chore: cleanup
1 parent 2e14c32 commit ee50ec9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Http/Adapter/Swoole/Server.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,10 @@ class Server extends Adapter
1212

1313
public function __construct(string $host, string $port = null, array $settings = [])
1414
{
15-
$workerNumber = swoole_cpu_num() * 6;
1615
$this->server = new SwooleServer($host, $port);
1716
$this->server->set(\array_merge($settings, [
1817
'open_http2_protocol' => true,
19-
// 'http_compression' => true,
20-
// 'http_compression_level' => 6,
21-
22-
// Server
23-
// 'log_level' => 0,
2418
'dispatch_mode' => 2,
25-
// 'worker_num' => $workerNumber,
26-
// 'reactor_num' => swoole_cpu_num() * 2,
27-
// 'task_worker_num' => $workerNumber,
28-
// 'open_cpu_affinity' => true,
29-
30-
// Coroutine
31-
// 'enable_coroutine' => true,
32-
// 'max_coroutine' => 1000,
3319
]));
3420
}
3521

0 commit comments

Comments
 (0)