Skip to content

Commit

Permalink
Use workers count to timer table size instead of 250 or param
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Jan 27, 2024
1 parent caa152d commit 17e090a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/createSwooleTimerTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require_once __DIR__.'/../src/Tables/TableFactory.php';

if (($serverState['octaneConfig']['max_execution_time'] ?? 0) > 0) {
$timerTable = TableFactory::make($serverState['octaneConfig']['max_timer_table_size'] ?? 250);
$timerTable = TableFactory::make($serverState['workers']);

$timerTable->column('worker_pid', Table::TYPE_INT);
$timerTable->column('time', Table::TYPE_INT);
Expand Down

0 comments on commit 17e090a

Please sign in to comment.