diff --git a/app/http.php b/app/http.php index 7f6faecaa7..7dc893107e 100644 --- a/app/http.php +++ b/app/http.php @@ -7,6 +7,7 @@ $registerRequestResources = require __DIR__ . '/init/resources/request.php'; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; +use Swoole\Runtime; use Swoole\Table; use Utopia\Audit\Adapter\Database as AdapterDatabase; use Utopia\Audit\Adapter\SQL as AuditAdapterSQL; @@ -34,6 +35,8 @@ use function Swoole\Coroutine\run; $files = new Files(); $files->load(__DIR__ . '/../public'); +Runtime::enableCoroutine(SWOOLE_HOOK_ALL); + $certifiedDomains = new Table(100_000); $certifiedDomains->column('value', Table::TYPE_INT, 1); $certifiedDomains->create();