Skip to content

Commit

Permalink
Fix timer table set failed (#650)
Browse files Browse the repository at this point in the history
* Fix timer table set failed

* Update octane.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
sy-records and taylorotwell authored Mar 1, 2023
1 parent 2a4bf1d commit c9aaf23
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(250);
$timerTable = TableFactory::make($serverState['octaneConfig']['max_timer_table_size'] ?? 250);

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

0 comments on commit c9aaf23

Please sign in to comment.