Disable TCP hook on stats resources

This commit is contained in:
Jake Barnby 2025-05-30 00:32:55 +12:00
parent 2b9b76f7bd
commit c6b1209b8f
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -4,6 +4,7 @@ namespace Appwrite\Platform\Tasks;
use Appwrite\Event\StatsResources as EventStatsResources;
use Appwrite\Platform\Action;
use Swoole\Runtime;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\DateTime;
@ -50,6 +51,8 @@ class StatsResources extends Action
public function action(Database $dbForPlatform, callable $logError, EventStatsResources $queue): void
{
Runtime::enableCoroutine(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$this->logError = $logError;
$this->dbForPlatform = $dbForPlatform;