Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"ext-json": "*",
"psr/http-client": "^1.0",
"psr/http-message": "^2.0",
"utopia-php/cache": "3.*",
"utopia-php/client": "^0.2",
"utopia-php/pools": "1.*",
"utopia-php/cache": "4.*",
"utopia-php/client": "0.3.*",
"utopia-php/pools": "2.*",
"utopia-php/psr7": "^0.2",
"utopia-php/cloudevents": "0.1.*"
},
Expand Down
87 changes: 46 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion tests/Feed/Support/UsesPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ trait UsesPool
/** The pool's connection count, and so the number of concurrent borrows it allows. */
protected const int POOL_SIZE = 4;

/** Seconds a borrow may wait for a free connection before the pool gives up. */
protected const float POOL_TIMEOUT = 3.0;

/** @var UtopiaPool<\Redis|\RedisCluster>|null */
private ?UtopiaPool $pool = null;

Expand All @@ -40,7 +43,7 @@ protected static function poolOver(Stack $adapter): UtopiaPool
$redis->connect((string) (\getenv('REDIS_HOST') ?: 'redis'), (int) (\getenv('REDIS_PORT') ?: 6379));

return $redis;
});
}, self::POOL_TIMEOUT);

return $pool;
}
Expand Down
Loading