From d305f8854039cd47b1bb2e861bbb0c3cc502fa45 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 16 Jan 2026 13:10:43 +0530 Subject: [PATCH] updated pools --- composer.json | 2 +- composer.lock | 21 +++++++++++---------- tests/Queue/E2E/Adapter/PoolTest.php | 3 ++- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 3f7af79..2d6bf5a 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "utopia-php/console": "0.0.*", "utopia-php/framework": "0.33.*", "utopia-php/telemetry": "*", - "utopia-php/pools": "0.8.*", + "utopia-php/pools": "1.*", "utopia-php/fetch": "0.5.*" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 91313d9..f8d936b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "65969e3acad5417806c2128aef929e66", + "content-hash": "571116744e6ae80360d351176f5e27b6", "packages": [ { "name": "brick/math", @@ -2360,26 +2360,27 @@ }, { "name": "utopia-php/pools", - "version": "0.8.2", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d" + "reference": "74ba7dc985c2f629df8cf08ed95507955e3bcf86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", - "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/74ba7dc985c2f629df8cf08ed95507955e3bcf86", + "reference": "74ba7dc985c2f629df8cf08ed95507955e3bcf86", "shasum": "" }, "require": { - "php": ">=8.3", - "utopia-php/telemetry": "0.1.*" + "php": ">=8.4", + "utopia-php/telemetry": "*" }, "require-dev": { "laravel/pint": "1.*", "phpstan/phpstan": "1.*", - "phpunit/phpunit": "11.*" + "phpunit/phpunit": "11.*", + "swoole/ide-helper": "5.1.2" }, "type": "library", "autoload": { @@ -2406,9 +2407,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/0.8.2" + "source": "https://github.com/utopia-php/pools/tree/1.0.0" }, - "time": "2025-04-17T02:04:54+00:00" + "time": "2026-01-15T12:34:17+00:00" }, { "name": "utopia-php/telemetry", diff --git a/tests/Queue/E2E/Adapter/PoolTest.php b/tests/Queue/E2E/Adapter/PoolTest.php index 8c02d2b..3c46be0 100644 --- a/tests/Queue/E2E/Adapter/PoolTest.php +++ b/tests/Queue/E2E/Adapter/PoolTest.php @@ -3,6 +3,7 @@ namespace Tests\E2E\Adapter; use Utopia\Pools\Pool as UtopiaPool; +use Utopia\Pools\Adapter\Stack as Stack; use Utopia\Queue\Broker\Pool; use Utopia\Queue\Broker\Redis as RedisBroker; use Utopia\Queue\Connection\Redis; @@ -13,7 +14,7 @@ class PoolTest extends Base { protected function getPublisher(): Publisher { - $pool = new UtopiaPool('redis', 1, function () { + $pool = new UtopiaPool(new Stack(), 'redis', 1, function () { return new RedisBroker(new Redis('redis', 6379)); });