mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Linter fix
This commit is contained in:
@@ -10,7 +10,7 @@ class RoundRobin extends Adapter
|
||||
{
|
||||
private Atomic $counter;
|
||||
|
||||
function __construct(RedisPool $redisPool)
|
||||
public function __construct(RedisPool $redisPool)
|
||||
{
|
||||
parent::__construct($redisPool);
|
||||
$this->counter = new Atomic(-1);
|
||||
@@ -22,7 +22,7 @@ class RoundRobin extends Adapter
|
||||
$executors = $this->getExecutors();
|
||||
$executor = $executors[$index] ?? null;
|
||||
|
||||
if(!$executor) {
|
||||
if (!$executor) {
|
||||
$executor = $executors[0];
|
||||
$this->counter->cmpset($index, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user